mmrm_tidiers | R Documentation |
mmrm
ObjectsThese methods tidy the estimates from an mmrm
object into a
summary.
## S3 method for class 'mmrm'
tidy(x, conf.int = FALSE, conf.level = 0.95, ...)
## S3 method for class 'mmrm'
glance(x, ...)
## S3 method for class 'mmrm'
augment(
x,
newdata = NULL,
interval = c("none", "confidence", "prediction"),
se_fit = (interval != "none"),
type.residuals = c("response", "pearson", "normalized"),
...
)
x |
( |
conf.int |
( |
conf.level |
( |
... |
only used by |
newdata |
( |
interval |
( |
se_fit |
( |
type.residuals |
( |
tidy(mmrm)
: derives tidy tibble
from an mmrm
object.
glance(mmrm)
: derives glance
tibble
from an mmrm
object.
augment(mmrm)
: derives augment
tibble
from an mmrm
object.
mmrm_methods
, mmrm_tmb_methods
for additional methods.
fit <- mmrm(
formula = FEV1 ~ RACE + SEX + ARMCD * AVISIT + us(AVISIT | USUBJID),
data = fev_data
)
# Applying tidy method to return summary table of covariate estimates.
fit |> tidy()
fit |> tidy(conf.int = TRUE, conf.level = 0.9)
# Applying glance method to return summary table of goodness of fit statistics.
fit |> glance()
# Applying augment method to return merged `tibble` of model data, fitted and residuals.
fit |> augment()
fit |> augment(interval = "confidence")
fit |> augment(type.residuals = "pearson")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.