rsquare: Pseudo-R2

Description Usage Arguments Details References

View source: R/rsquare.R

Description

Calculates Efron's pseudo-R2 for alienFit objects

Usage

1
rsquare(alienFit)

Arguments

alienFit

An object of class alienFit.

Details

Efron's pseudo-R2 is calculated as:

R^2 = 1 - \frac{(y_i-\hat{π})^2}{(y_i-\bar{y})^2}{R2=1-((y-pihat)^2)/((y-ybar)^2)}

.

where pihat is the model predicted values calculated on the scale of the response variable.

This version of pseudo-R2 was chosen over the others because it can be calculated for all types of models implemented in this package.

References

Efron, B. (1978) Regression and ANOVA with Zero-One Data: Measures of Residual Variation., Journal of the American Statistical Association 73, 113-121.


TheoreticalEcosystemEcology/alien documentation built on Feb. 21, 2020, 7:12 p.m.