This function provides rho-squared and rho-squared adjusted by the number of estimated coefficients.
gofm(output)# S3 method for gofm
print(x, digits = getOption("digits"), ...)
This function returns an object of S3 class "gofm" that is a list with the following components.
The rho-squared value. Defined as RHO2 = 1 - (LLb / LL0)
.
The rho-squared value adjusted by the number of estimated coefficients. Defined as AdjRHO2 = 1 - ((LLb - K) / LL0)
.
The Akaike Information Criterion (AIC).
The Bayesian Information Criterion.
The number of estimated coefficients.
The log likelihood value at the start.
The log likelihood value at convergence.
An object containing the output from the function clogit
or glm
.
An object of class "gofm."
A number of significant digits.
Arguments passed to the function format
.
Hideo Aizaki
This function provides rho-squared (also called McFadden's R-squared or pseudo R-squared), rho-squared adjusted by the number of estimated coefficients, the number of estimated coefficients, and log likelihood values at the start and at convergence (see, e.g., Ben-Akiva and Lerman 1985; Cameron and Trivedi 2005).
In version 0.3-0 and later versions, this function is also available for calculating goodness-of-fit measures for binary choice models estimated by using the function glm
in the package stats.
# See "Examples" for the function make.dataset.
Run the code above in your browser using DataLab