View source: R/extract_model_properties.R
get_cm_from_model | R Documentation |
Used by predict_fit_and_ci and plot_transfers.
get_cm_from_model(model, comp_labels, transf_labels)
model |
Model to use in estimates/predictions. |
comp_labels |
The labels of the compositional columns. |
transf_labels |
Ilr-transformed compositional column labels. |
Compositional mean of data used to create models, on both original and transformed scale (two element list).
lm_outcome <- comp_model( type = "linear", outcome = "BMI", covariates = c("agegroup", "sex"), data = simdata, comp_labels = c("vigorous", "moderate", "light", "sedentary", "sleep"), det_limit = 0.00119 ) comp_labels <- c("vigorous", "moderate", "light", "sedentary", "sleep") tl <- transf_labels(comp_labels = comp_labels, transformation_type = "ilr") get_cm_from_model(model = lm_outcome, comp_labels = comp_labels, transf_labels = tl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.