Skip to contents

Combined first-stage and structural repair model.

Usage

class_repair_mod(
  mlm_fit = NULL,
  struc_fit = NULL,
  analysis_data = NULL,
  call = NULL
)

Arguments

mlm_fit

The first-stage multilevel-model fit.

struc_fit

The structural M-MOM fit.

analysis_data

Matched structural data from repair_data().

call

The original call.

Value

An S7 object containing MLM fits, the structural fit, assembled analysis data, and the original call. Manually supplying these properties does not perform the statistical validation done by repair().

Details

An advanced S7 class used by repair(). Obtain validated fitted objects through repair() rather than constructing them manually. The exported class remains available for type checks and advanced integration; its property layout is not the stable reporting interface. Use the public generics and table extractors for routine analysis.

Examples

data(repair_example)
growth <- lme4::lmer(score ~ day + (day | person), repair_example$repeated)
fit <- repair(re("day") ~ practice, growth, repair_example$people, "person")
S7::S7_inherits(fit, class_repair_mod)
#> [1] TRUE
coef(fit)
#> (Intercept)    practice 
#>  -0.7895289   0.1754854