Implements the generics::tidy() generic so panglm results work with
broom/modelsummary table-building workflows.
See also
tidy-methods for the other model classes.
Other panglm methods:
coefplot(),
confint.panglm(),
effectcurve(),
fitted.panglm(),
fixef(),
glance.panglm(),
logLik.panglm(),
model.matrix.panglm(),
partialeffects.panordered(),
plot.panglm(),
plot.panglm_ape(),
plot.panglm_effectcurve(),
predict.panglm(),
predict.panordered(),
residuals.panglm(),
summary.panglm(),
vcov.panglm()
Examples
data(copd)
fit <- panglm(fev1 ~ treatment + age + smoker + crp, data = copd,
index = c("id", "visit"), model = "pooling", family = "gaussian")
if (requireNamespace("generics", quietly = TRUE)) {
generics::tidy(fit, conf.int = TRUE)
}
#> term estimate std.error statistic p.value conf.low
#> 1 (Intercept) 4.09147857 0.225597468 18.136190 1.650863e-73 3.64931566
#> 2 treatment 0.20855645 0.056577512 3.686207 2.276208e-04 0.09766656
#> 3 age -0.01423926 0.003133068 -4.544830 5.497949e-06 -0.02037996
#> 4 smoker -0.35520702 0.055904799 -6.353784 2.100818e-10 -0.46477841
#> 5 crp -0.03289479 0.013135302 -2.504304 1.226925e-02 -0.05863951
#> conf.high
#> 1 4.533641481
#> 2 0.319446334
#> 3 -0.008098562
#> 4 -0.245635625
#> 5 -0.007150074