Skip to content

Function reference

Specify, fit, and predict

Define a conditional distribution, fit it, and place new observations.

ref_spec
Specification of a distributional reference model
ref_family
Family constructors for reference models
ref_fit
Fit distributional reference models
predict.ref_fit
Predict distributions or scores from a reference fit

Score profiles

Work with predictive distributions and individual deviation scores.

as_scores
Scores derived from a predictive CDF
dist_shash
Predictive distributions
ref_flag
Flag threshold exceedances
ref_joint
Gaussian-copula joint deviation layer

Select and validate models

Use out-of-sample evidence to choose and check a reference model.

ref_crossfit
Out-of-fold reference scores
ref_select
Lexicographic out-of-sample model ladder
ref_assess
Assess a fitted reference model

Transport a reference

Check support, adapt or calibrate a new site, and freeze the result.

ref_support
Reference-support status of target observations
ref_adapt
Adapt a reference model to a new domain
ref_calibrate
Held-out probability recalibration
ref_freeze
Frozen reference bundle and model card
ref_write
Read and write versioned reference bundles

Model longitudinal change

Estimate within-person dependence, transitions, forecasts, and chart velocity.

ref_process
Longitudinal process kernel
ref_dynamics
Longitudinal dependence process
ref_transition
Transitions, change, and velocity
ref_forecast
History-conditioned forecast
ref_derivative
Population-chart derivatives

Summarise and visualise

Turn fitted models and scores into compact tables and graphics.

tidy.ref_fit
Tidy summaries of reference fits and assessments
autoplot.ref_fit
Graphics for reference models
fortify_centiles
Tidy plot data for reference charts
theme_referent
Publication theme for referent plots

Simulate examples

ref_simulate
Simulate reference-model data