robust_se | R Documentation |
Implements cluster-robust standard errors from the clubSandwich
package. The clubSandwich
package is required to use this function. See mlmhelpr::boot_se
for an alternative.
robust_se(model, type = "CR2", pct = 95)
model |
model produced using the |
type |
character string specifying the estimation type. Options include "CR0", "CR1", "CR1p", "CR1S", "CR2", or "CR3". Defaults to "CR2". See details in |
pct |
percentage level for confidence interval. Defaults to 95. Must be specified as a whole number between 1 and 100 (e.g., 99, 95, 80). |
Data frame and message indicating type of robust standard error requested.
clubSandwichmlmhelpr
# run time > 5s
fit <- lme4::lmer(mathach ~ 1 + ses + catholic + (1|id),
data=hsb, REML=TRUE)
robust_se(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.