predict.hSDM | R Documentation |
Predicted values for models fitted with hSDM
## S3 method for class 'hSDM'
predict(object,newdata=NULL,type="mean",probs=c(0.025,0.975),...)
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. |
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"
.
Ghislain Vieilledent ghislain.vieilledent@cirad.fr
hSDM
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.