Skip to content

Pred function - miss understanding?

2 messages · Chris Mcowen, Aitor GastónGonzález

#
Chris,

The predicted probabilities of a binomial GLM (i.e., logistic regression)
should not be interpreted as an absolute value, they largely depend on
the prevalence in the training sample (the proportion of threatened
species in your case).

I understand that you are interested in evaluating the predictive
performance of the model. There are many statistics to evaluate the
predictive performance of a logistic regression model. If you want to
use the predictions to rank species according to extinction risk you may
focus on discrimination, e.g. AUC (area under ROC curve). AUC may be
interpreted as the probability that the prediction for a threatened
species chosen at random is larger than the prediction for a non
threatened species chosen at random. If you are concerned with the
reliability of the predictions (i.e., level of agreement between
predicted and actual probabilities) you may evaluate calibration (e.g.
calibration slope). If your model is well calibrated, you should find
approximately 50% of threatened species among those that yielded a
predicted probability of 0.5, 30% among those that yielded 0.3 and so on.

You can try val.prob function of the Design package to calculate
discrimination and calibration measures. You will find useful advice on
predictive performance evaluation of logistic regression models in any
of these books:

Harrell, F.E., 2001. Regression Modelling Strategies with Applications to
Linear Models Logistic Regression and Survival Analysis. Springer, New
York, NY, USA, p. 568

Steyerberg, E.W., 2009. Clinical Prediction Models: A Practical Approach
to Development Validation and Updating. Springer, New York, NY, USA, p.
497.

Just in case your sample is not very large, you may consider a simpler
model. If the factors used as predictors have several levels and the
training sample size is limited, your model may be overfitted. 10 events
(number of threatened species, or unthreatened if less frequent) per
estimated parameter are recommendable (note that each factor with k
levels will "spend" k-1 parameters).

Hope this helps,

Aitor