Create a TDMore mixture model, based on several options for a discrete covariate.

tdmore_mixture_covariates(model, probs, covariates)

Arguments

model

a tdmore model with a discrete covariate

probs

a numeric vector with the a priori probabilities for the covariate values

covariates

a list with covariate values corresponding to the right names

Value

a tdmore_mixture object

Examples

if (FALSE) { tdmore_mixture_covariates(tacrolimus_storset, probs=c(0.5, 0.5), covariates=list(c(CYP3A5=1), c(CYP3A5=0)) ) }