create_oneAPCsummaryTable {APCtools} | R Documentation |
Internal helper to create a summary table for one estimated GAM model
Description
Internal helper function to be called in create_APCsummary
.
This function creates the summary table for one model estimated with
gam
or bam
.
Usage
create_oneAPCsummaryTable(model, dat, apc_range = NULL)
Arguments
model |
Optional regression model estimated with gam
or bam to estimate a smoothed APC surface. Only used if
y_var is not
specified.
|
dat |
Dataset with columns period and age . If y_var
is specified, the dataset must contain the respective column. If model
is specified, the dataset must have been used for model estimation with
gam or bam .
|
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.
|
Value
data.frame
containing aggregated information on the
individual effects.
[Package
APCtools version 1.0.4
Index]