Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upModel request: bam models from mgcv #453
Comments
|
Go ahead and try that code out for testing. |
It isn't in the package yet. You'll have to source the model code into an R session then use library(caret)
set.seed(24)
tr_dat <- SLC14_1(500)
set.seed(13)
mod <- train(y ~ ., data = tr_dat,
method = modelInfo,
trControl = trainControl(method = "cv"))You should also be able to pass hist(exp(tr_dat$y/100))
set.seed(13)
mod <- train(exp(y/100) ~ ., data = tr_dat,
method = modelInfo,
family = Gamma(),
trControl = trainControl(method = "cv")) |
|
on CRAN |
Mgcv package has recently proposed an optimized version of gam... It could be nice to add this feature https://stat.ethz.ch/R-manual/R-devel/library/mgcv/html/bam.html