Internal helper to create a summary table for one estimated GAM model
Source:R/create_APCsummary.R
create_oneAPCsummaryTable.RdInternal 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
gamorbamto estimate a smoothed APC surface. Only used ify_varis not specified.- dat
Dataset with columns
periodandage. Ify_varis specified, the dataset must contain the respective column. Ifmodelis specified, the dataset must have been used for model estimation withgamorbam.- 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.