predict.slim {autopls} | R Documentation |
Applies a model object of class slim
originating from
autopls
to a vector, matrix or to a stack
or brick
from package raster.
## S3 method for class 'slim' predict(object, dat, ...)
object |
object of class |
dat |
vector, matrix, dataframe or imagery (the latter as |
... |
logical. Arguments to be passed to method |
Elements, columns or layers must have the same number and order as the input
predictors for autopls
. In case of large image files the function
is based on tile processing.
A new vector matrix or image depending on the type of newdata
Sebastian Schmidtlein
## load predictor and response data to the current environment data (murnau.X) data (murnau.Y) ## call autopls with the standard options model <- autopls (murnau.Y ~ murnau.X) ## condensed model object new.model <- slim (model) ## new data new <- murnau.X + 500 ## prediction predict (new.model, new)