Based on the covariance
and prior_cov
choices, this function prepares the prior parameters
for the covariance model.
prepare_prior_params(stan_data, covariance, prior_cov, mmrm_initial, same_cov)
Modified stan_data
with prior parameters added.
A list containing the Stan data, to which the prior parameters will be added.
A character string indicating the covariance structure (e.g., "us", "ar1").
A character string indicating the prior covariance type (e.g., "default", "lkj").
A list containing the initial MMRM fit results, which includes the relevant frequentist estimates.
A logical indicating whether to use the same covariance structure for all groups.