brms_mixture_2
brms_mixture_2.Rd
Model of class brmsfit
Examples
if (FALSE) {
# \dontrun{
brm(
formula = QoL ~ time + hospital + education + age + (1 + time | ID),
data = qol_cancer, # Your prepared dataset
family = mixture(gaussian, nmix = 2), # Gaussian distribution for outcome, K_classes components
chains = 4, # Number of MCMC chains
iter = 1000, # Total iterations per chain (includes warmup)
cores = 4, # Number of CPU cores to use
seed = 1234 # For reproducibility
)
# }
}