chi.square.goodness.of.fit.simple: Chi Square Goodness of Fit Test

View source: R/chi.square.goodness.of.fit.simple.R

chi.square.goodness.of.fit.simpleR Documentation

Chi Square Goodness of Fit Test

Description

Calculates chi square goodness of fit test for given contingency table.

Usage

chi.square.goodness.of.fit.simple(
  observed.frequencies,
  expected.frequencies = chi.square.2d.expected.frequencies(observed.frequencies),
  alternative = c("two.sided", "greater", "less"),
  conf.level = 0.95
)

Arguments

observed.frequencies

A matrix of values to test.

expected.frequencies

A matrix of values to compare with observed.frequencies.

alternative

The alternative hypothesis to use for the test computation.

conf.level

The confidence level for this test, between 0 and 1.

Value

The results of the statistical test.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.