find_covars_gam: find_covars_gam

View source: R/growthrate_gam.R

find_covars_gamR Documentation

find_covars_gam

Description

pull out covariests from mgcv model formula

Usage

find_covars_gam(fml, ...)

Arguments

fml

formula to get covariates from

...

covariates to ignore (like agevar)

Examples

 fml <- y ~ s(x) + x2 + s(x3, bs="re") + x4
 covars <- find_covars_gam(fml, x4) # x, x2

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.