Description Usage Arguments Details References
Calculates Efron's pseudo-R2 for alienFit
objects
1 | rsquare(alienFit)
|
alienFit |
An object of class |
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.
Efron, B. (1978) Regression and ANOVA with Zero-One Data: Measures of Residual Variation., Journal of the American Statistical Association 73, 113-121.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.