Obtain an ordinary data frame for reporting, joins, and export without using internal S7 properties. No fitting or reliability computation is performed.
Arguments
- object
A fitted
repair()result.- conf.level
Confidence level strictly between zero and one; default 0.95.
Value
A plain data frame with columns, in order: term (character),
estimate, std.error, statistic, p.value, conf.low, conf.high, and
conf.level (numeric). Rows follow coef(object): the structural intercept,
then model-matrix predictor columns. Factor contrasts retain their column
names; random-coefficient predictors retain model-qualified labels. Row names
are automatic, not identifiers. vcov(object) remains the public accessor
for structural coefficient covariance.
Details
Estimates retain their input scale. Standard errors, two-sided p-values,
and normal confidence intervals condition on fitted MLM quantities
and any supplied cross-model error covariance. Changing conf.level changes
interval endpoints only. Failed structural fits stop with an informative error;
inspect repair_diagnostics() for their status and MLM diagnostics.
Examples
growth <- lme4::lmer(Reaction ~ Days + (Days | Subject), lme4::sleepstudy)
people <- data.frame(id = levels(lme4::sleepstudy$Subject), observed = 1:18)
fit <- repair(re("Days") ~ observed, growth, people, "id")
repair_coefficients(fit, conf.level = 0.90)
#> term estimate std.error statistic p.value conf.low conf.high
#> 1 (Intercept) -2.9721078 3.2147349 -0.9245266 0.3552122 -8.2598762 2.315661
#> 2 observed 0.3128535 0.2969909 1.0534109 0.2921527 -0.1756531 0.801360
#> conf.level
#> 1 0.9
#> 2 0.9
