View source: R/add_symmetrical_features.R
add_symmetrical_features | R Documentation |
This function adds 6 columns to assist with describing various age based interactions for model fitting. Requires that the age columns are called "age_from", and "age_to"
add_symmetrical_features(data)
data |
data.frame with columns, |
data.frame with 6 more columns, gam_age_offdiag
, gam_age_offdiag_2
, gam_age_diag_prod
, gam_age_diag_sum
, gam_age_pmax
, gam_age_pmin
,
vec_age <- 0:2
dat_age <- expand.grid(
age_from = vec_age,
age_to = vec_age
)
add_symmetrical_features(dat_age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.