- data
Data frame in long format, where each row describes a measurement occasion for a given individual. It is assumed that each individual has the same number of assigned timepoints (a.k.a., rows). There can be missingness in the outcome (y_var), but there cannot be missingness in time (time_var).
- ind_id_var
Name of column that contains ids for individuals with repeated measures in a longitudinal dataset (e.g., students).
- cross_id_var
Name of column that contains ids for the crossed factor (e.g., teachers).
- time_var
Name of column that contains the time variable. This column cannot contain any missing values.
- y_var
Name of column that contains the outcome variable. Missing values should be denoted by NA.
- form
Name of the functional form. Options include: ‘linear’ (default), ‘quadratic’, ‘exponential’, ‘piecewise’.
- fixed_effects
(optional) Starting values for the fixed effects parameters.
- iters_adapt
(optional) Number of iterations for adaptation of jags model (default = 5000).
- iters_burn_in
(optional) Number of iterations for burn-in (default = 50000).
- iters_sampling
(optional) Number of iterations for posterior sampling (default = 50000).
- thin
(optional) Thinning interval for posterior sampling (default = 15).
- save_full_chains
Logical indicating whether the MCMC chains from rjags should be saved (default = FALSE). Note, this should not be used regularly as it will result in an object with a large file size.
- save_conv_chains
Logical indicating whether the MCMC chains from rjags should be saved but only for the parameters monitored for convergence (default = FALSE). This would be useful for plotting traceplots for relevant model parameters to evaluate convergence behavior. Note, this should not be used regularly as it will result in an object with a large file size.
- verbose
Logical controlling whether progress messages/bars are generated (default = TRUE).