Learn R Programming

melt (version 1.11.3)

chisq: Chi-square statistic

Description

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, ...)

Value

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

Arguments

object

An object that contains the chi-square statistic.

...

Further arguments passed to methods.

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

EL, ELMT, ELT, pVal()

Examples

Run this code
data("precip")
fit <- el_mean(precip, par = 40)
chisq(fit)

Run the code above in your browser using DataLab