run_gams: Run GAM with given predictors & response variable on given...

Description Usage Arguments Value

View source: R/fit_models.R

Description

Generalised additive models describing the response variable, response, are constructed using all possible combinations of the given predictors, preds. These models are fit using the given data frame, data, and contain up to and including max_n terms. These are smoothed terms with k knots.

Usage

1
run_gams(preds, response, kval, max_n, data)

Arguments

preds

Names of the predictors (vector of strings)

response

Name of response variable (string)

kval

Number of knots in the smoothers (numeric)

max_n

Maximum number of terms in each GAM (numeric)

data

Data set that includes the predictors and response variable (data frame)

Value

List of gams


DanielReedOcean/ACCASPR documentation built on Aug. 22, 2019, 3:34 a.m.