Description Usage Arguments Examples
Function builds GLM or GAM, compares AIC and outputs the winner.
| 1 | glm_gam_test(dataset, exp.names, indicator, family)
 | 
| dataset | = dataset containing y and all x covariates. should be scaled and centered (mean = 0, sd = 1) | 
| exp.names | = explanatory covariate names, passed as vector of characters | 
| indicator | = y variable of interest (character) | 
| family | = GLM family distribution, takes 'gaussian' or 'Gamma' | 
| 1 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.