SuperLearner wrapper for GAM with Gamma family and log link
SL.gam.gamma.log.RdA SuperLearner wrapper that implements generalized additive models using the Gamma family with a log link.
Arguments
- Y
A numeric
vectorof outcome values.- X
A numeric
matrixordata.frameof covariates and treatment.- newX
A numeric
matrixordata.frameof predictors.- obsWeights
Not used.
- deg.gam
A numeric representing the degrees of the GAM. Defaults to 2.
- cts.num
A numeric indicating the minimum number of unique values a numeric covariate requires to be considered as a continuous variable. Defaults to 4.
- ...
Any additional arguments.