Internal helper to create a summary table for one estimated GAM model
Source:R/create_APCsummary.R
create_oneAPCsummaryTable.Rd
Internal helper function to be called in create_APCsummary
.
This function creates the summary table for one model estimated with
gam
or bam
.
Arguments
- model
Optional regression model estimated with
gam
orbam
to estimate a smoothed APC surface. Only used ify_var
is not specified.- dat
Dataset with columns
period
andage
. Ify_var
is specified, the dataset must contain the respective column. Ifmodel
is specified, the dataset must have been used for model estimation withgam
orbam
.- apc_range
Optional list with one or multiple elements with names
"age","period","cohort"
to filter the data. Each element should contain a numeric vector of values for the respective variable that should be kept in the data. All other values are deleted.