glm_gam_test: Comparison of GAM and GLM models

Description Usage Arguments Examples

View source: R/glm_gam_test.R

Description

Function builds GLM or GAM, compares AIC and outputs the winner.

Usage

1
glm_gam_test(dataset, exp.names, indicator, family)

Arguments

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'

Examples

1

jpwrobinson/funk documentation built on Nov. 21, 2021, 11:23 p.m.