Description Usage Arguments Author(s)
This function is to predict the glmnet model object on raster data. It accepts the quadratic transformation if it was provided in the original model fit.
1 2 3 4 5 6 7 8 9 10 |
r |
a raster file |
model |
cv.glmnet model object |
slambda |
the values of the penalty lambda in cv.glmnet model. The default if "lambda.1se", alternatively "lambda.min" can be used. See predict.cv.glment help file in the glmnet pakage. |
type |
the prediction type. Could be "link" or "response". The default is "response". |
quadraticObj |
a make_quadratic object. If the model is fitted with the quadratic terms created by make_quadratic function, provide the make_quadratic object here. |
factors |
factor variables in the model |
filename |
output file directory for the predicted map. If provided, the map will be save on the disk. |
verbose |
logical. Control amount of printing... |
Roozbeh Valavi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.