Learn R Programming

jmv (version 0.7.0)

propTest2: Proportion Test (2 Outcomes)

Description

Proportion Test (2 Outcomes)

Usage

propTest2(data, vars, areCounts = FALSE, testValue = 0.5, hypothesis = "notequal", ci = FALSE, ciWidth = 95)

Arguments

data
the data as a data frame
vars
a vector of strings naming the variables of interest in data
areCounts
TRUE or FALSE (default), the variables are counts
testValue
a number (default: 0.5), the value for the null hypothesis
hypothesis
'notequal' (default), 'greater' or 'less', the alternative hypothesis
ci
TRUE or FALSE (default), provide confidence intervals
ciWidth
a number between 50 and 99.9 (default: 95), the confidence interval width