X2: X2

Description Usage Arguments Author(s) See Also

View source: R/X2.R

Description

X2 Conducts a chi-square test of independency on a contingency table and renders a data frame containing the results and a plot showing the chi-square distribution with reject region and observed test statistic.

Usage

1
X2(data, y, x, conf = 0.95, alpha = 0.05)

Arguments

data

Data to be analyzed with response variable as first variable.

y

Character string indicating the name of the response variable

x

Character string indicating the name of the explanatory variable

conf

Level of confidence between 0 and 1

alpha

The probability of a type 1 error between 0 and 1

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other xmar functions: X23D, analyze3d, analyze, discussion, formatData, plotBars, preprocess, propTest, univariate, zTest


DataScienceSalon/xmar documentation built on May 28, 2019, 12:24 p.m.