Focus an idiographic fit on pooled models
Value
An idiographic_fit of the same structure as x whose metric,
prediction, coefficient and tuning tables are restricted to the pooled scope, so
that metrics(), predictions() and coefs() report only those rows.
Examples
fit <- fit_lm(srl, y = "effort", x = "efficacy", id = "name", time = "day")
pooled(fit) |> coefs()
#> scope model estimator subject subgroup term estimate std_error
#> 1 pooled lm native .all .all (Intercept) 32.5060708 4.52339554
#> 2 pooled lm native .all .all efficacy 0.4878091 0.06319256
#> statistic p_value
#> 1 7.186210 2.200421e-08
#> 2 7.719407 4.617938e-09