# ecospat.Epred

##### Prediction Mean

Calculate the mean (or weighted mean) of several predictions.

##### Usage

`ecospat.Epred (x, w=rep(1,ncol(x)), th=0)`

##### Arguments

- x
A dataframe object with SDM predictions.

- w
Weight of the model, e.g. AUC. The default is 1.

- th
Threshold used to binarize.

##### Details

The Weighted Average consensus method utilizes pre-evaluation of the predictive performance of the single-models. In this approach, half (i.e. four) of the eight single-models with highest accuracy are selected first, and then a WA is calculated based on the pre-evaluated AUC of the single-models

##### Value

A weighted mean binary transformation of the models.

##### References

Boyce, M.S., P.R. Vernier, S.E. Nielsen and F.K.A. Schmiegelow. 2002. Evaluating resource selection functions. *Ecol. Model.*, **157**, 281-300.

Marmion, M., M. Parviainen, M. Luoto, R.K. Heikkinen andW. Thuiller. 2009. Evaluation of consensus methods in predictive species distribution modelling. *Diversity and Distributions*, **15**, 59-69.

##### Examples

```
# NOT RUN {
x <- ecospat.testData[c(92,96)]
mean <- ecospat.Epred (x, w=rep(1,ncol(x)), th=0.5)
# }
```

*Documentation reproduced from package ecospat, version 3.0, License: GPL*