zTest: zTest

Description Usage Arguments Value Author(s) See Also

View source: R/zTest.R

Description

zTest Conducts a z-tests difference in proportions for a dichotomous categorical explanatory variable on a response variable. Assumes the null hypothesis is equal proportions.

Usage

1
2
zTest(data, success = "Traditional", scope, alternative = "two.sided",
  conf = 0.95, alpha = 0.05)

Arguments

data

Explanatory and response variable values

success

Which level of response variable to call "success", i.e. upon which inference should be done. Defaults to order in which factor variables are defined.

scope

Character string indicating the scope of the data being analyzed.

alternative

direction of the alternative hypothesis; "less","greater", or "two.sided"

conf

Desired confidence level

alpha

Probability of a type I error

Value

Data frame containing the results of the z-test

Author(s)

John James, jjames@datasciencesalon.org

See Also

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


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