create_modelSummary {APCtools} | R Documentation |
Create publication-ready summary tables of all linear and nonlinear effects
for models fitted with gam
or bam
.
The output format of the tables can be adjusted by passing arguments to
kable
via the ...
argument.
create_modelSummary(
model_list,
digits = 2,
method_expTransform = "simple",
...
)
model_list |
list of APC models |
digits |
number of displayed digits |
method_expTransform |
One of |
... |
additional arguments to |
If the model was estimated with a log or logit link, the function automatically performs an exponential transformation of the effects.
The table for linear coefficients includes the estimated coefficient
(coef
), the corresponding standard error (se
), lower and upper
limits of 95% confidence intervals (CI_lower
, CI_upper
) and
the p-values for all coefficients apart from the intercept.
The table for nonlinear coefficients include the estimated degrees of freedom
(edf
) and the p-value for each estimate.
List of tables created with kable
.
Alexander Bauer alexander.bauer@stat.uni-muenchen.de
library(APCtools)
library(mgcv)
data(travel)
model <- gam(mainTrip_distance ~ te(age, period) + residence_region +
household_size + s(household_income), data = travel)
create_modelSummary(list(model), dat = travel)