| gof.pearson {blm} | R Documentation |
Pearson's goodness-of-fit statistics for blm and lexpit objects.
Description
Computes the deviance and Pearson chi-squared statistics for the fit from a blm or lexpit model. These tests are appropriate when all predictors are categorical and there are many replicates within each covariate class.
Value
Returns a list with expected E and observed O and the chi-square test chisq and p-value (p.value) for the Pearson goodness-of-fit test. The observed and expected count are listed in the order of the unique levels formed by the design matrix.
usage
gof.pearson(object)
arguments
- object
instance of
blmorlexpit
Author(s)
Stephanie Kovalchik s.a.kovalchik@gmail.com
See Also
Examples
data(ccdata)
fit <- blm(y~female+I(packyear>20),data = ccdata,
weight = ccdata$w, strata = ccdata$strata)
gof.pearson(fit)
[Package blm version 2022.0.0.1 Index]