| VarCorr.pmrm_fit | R Documentation |
Extract estimated covariance matrix among visits within patients.
## S3 method for class 'pmrm_fit'
VarCorr(x, sigma = NA, ...)
x |
A fitted model object of class |
sigma |
Not used for |
... |
Not used. |
A matrix J rows and J columns, where J is the number
of scheduled visits in the clinical trial.
Other estimates:
coef.pmrm_fit(),
pmrm_marginals(),
tidy.pmrm_fit(),
vcov.pmrm_fit()
set.seed(0L)
simulation <- pmrm_simulate_decline_proportional(
visit_times = seq_len(5L) - 1,
gamma = c(1, 2)
)
fit <- pmrm_model_decline_proportional(
data = simulation,
outcome = "y",
time = "t",
patient = "patient",
visit = "visit",
arm = "arm",
covariates = ~ w_1 + w_2
)
VarCorr(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.