View source: R/lmmModel_estimates.R
lmmModel_estimates | R Documentation |
lmmModel_estimates
allows the user to easily extract some of the interesting model estimates for further use in other functions,
such as for power calculation.
lmmModel_estimates(model)
model |
An object of class "lme" representing the linear mixed-effects model fitted by |
The model estimates provided by lmmModel_estimates
include:
Fixed effect coefficients: \hat{\beta}_C
, \hat{\beta}_A
, \hat{\beta}_B
, \hat{\beta}_{AB}
,
which represent the estimated specific growth rates for the Control, Drug A, Drug B and Combination groups, respectively.
These are shown in columns control
, drug_a
, drug_b
, and combination
, respectively.
Standard deviation of the random effects (between-subject variance). Column sd_ranef
.
Standard deviation of the residuals (within-subject variance). Column sd_resid
.
A data frame with the estimated values for the coefficients of the tumor growth for each treatment,
the standard deviation of the random effects, and the standard deviation of the residuals of the model.
These values can be useful for the power analysis of the model using APrioriPwr()
.
data("grwth_data")
# Fit example model
lmm <- lmmModel(
data = grwth_data,
sample_id = "subject",
time = "Time",
treatment = "Treatment",
tumor_vol = "TumorVolume",
trt_control = "Control",
drug_a = "DrugA",
drug_b = "DrugB",
combination = "Combination"
)
# Get the estimates
lmmModel_estimates(lmm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.