leCessie.test | R Documentation |
Performs the le Cressie-van Houwelingen test for goodness-of-fit for a logistic regression model.
leCessie.test(object, bandwidth, newterms)
object |
an object of class "glm" on which to perform the test. |
bandwidth |
the bandwidth for smoothing the residuals. |
newterms |
any new variables to add to the model. Expressed as the right-hand side of a formula. |
If bandwidth
is missing, then the mean distance between observations
is used.
An object of class "lecessie" having these components:
method |
a description of the method. |
statistic |
the test statistic. |
parameters |
the degrees of freedom of the chi-squared test. |
p.value |
the attained p-level of the test statistic. |
data.name |
the name of |
alternative |
the alternate hypothesis–"some lack of fit." |
estimate |
the estimated values for the test. |
object |
the original |
target.object |
the |
bandwidth |
the bandwidth used for smoothing the residuals. |
max.distance |
the maximum distance between observations. |
smoothed.residuals |
the smoothed residuals. |
distance.matrix |
a matrix of the distances between observations. |
hat |
the hat matrix. |
The null hypothesis is "no lack of fit." Rejection of the null hypothesis indicates "some lack of fit."
le Cessie, S. and van Houwelingen, H.C., 1995, Testing the fit of a regression model via score tests in random effects models: Biometrics, v. 51, p 600-614.
binaryReg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.