Skip to contents

Extracts the chi-square statistic from a model.

Usage

# S4 method for EL
chisq(object, ...)

# S4 method for ELMT
chisq(object, ...)

# S4 method for ELT
chisq(object, ...)

# S4 method for SummaryEL
chisq(object, ...)

# S4 method for SummaryELMT
chisq(object, ...)

# S4 method for SummaryELT
chisq(object, ...)

# S4 method for SummaryLM
chisq(object, ...)

Arguments

object

An object that contains the chi-square statistic.

...

Further arguments passed to methods.

Value

The form of the value returned by chisq() depends on the class of its argument.

Methods (by class)

  • chisq(EL): Extracts the chi-square statistic.

  • chisq(ELMT): Extracts the vector of chi-square statistics.

  • chisq(ELT): Extracts the chi-square statistic.

  • chisq(SummaryEL): Extracts the chi-square statistic.

  • chisq(SummaryELMT): Extracts the vector of chi-square statistics.

  • chisq(SummaryELT): Extracts the chi-square statistic.

  • chisq(SummaryLM): Extracts the chi-square statistic for the overall test of the model.

See also

Examples

data("precip")
fit <- el_mean(precip, par = 40)
chisq(fit)
#> [1] 9.957478