predict.hSDM {hSDM} | R Documentation |
Predict method for models fitted with hSDM
Description
Predicted values for models fitted with hSDM
Usage
## S3 method for class 'hSDM'
predict(object,newdata=NULL,type="mean",probs=c(0.025,0.975),...)
Arguments
object |
An object of class |
newdata |
An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. |
type |
Type of prediction. Can be |
probs |
Numeric vector of probabilities with values in [0,1] and used when |
... |
Further arguments passed to or from other methods. |
Value
Return a vector for the predictive posterior mean when type="mean"
, a data-frame with the mean and quantiles when type="quantile"
or an mcmc
object (see coda
package) with posterior distribution for each prediction when type="posterior"
.
Author(s)
Ghislain Vieilledent ghislain.vieilledent@cirad.fr