epict | R Documentation |
Provides a user friendly interface around package functionality to model cycle thresholds, and symptom onsets from observed preprocessed data, a piecewise linear model, and a linear adjustment model.
epict(
obs,
model = epict_model(),
piecewise_formula = epict::piecewise_formula(~1, obs),
adjustment_formula = epict::adjustment_formula(~1, obs),
priors = epict::epict_priors(),
model_opts = epict::epict_model_opts(),
inference_opts = epict::epict_inference_opts(),
convert_to_list = epict_convert_to_list,
inits = epict_inits,
...
)
obs |
A data.frame with the following variables:
|
model |
A compiled |
piecewise_formula |
A list describing the piecewise linear cycle threshold
formula as described by |
adjustment_formula |
A list describing the cycle threshold linear
adjustment formula (shift and scale) as described by |
priors |
A data.table of population-level priors as produced
by |
model_opts |
A list of model options. See |
inference_opts |
A list of options to use for inference. See
|
convert_to_list |
Convert observations and model settings into
a list for use in stan. Defaults to using |
inits |
A function that combined with a list of data returns
sample initial conditions for use during model fitting based
on model priors. Defaults to |
... |
Additional arguments passed to cmdstanr. |
A cmdstanr model fit containing posterior samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.