Proportion Test (2 Outcomes)

Binomial test

Example usage

 propTest2(data, vars='x')


data — the data as a data frame

vars — a vector of strings naming the variables of interest in data

areCountsTRUE 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

ciTRUE or FALSE (default), provide confidence intervals

ciWidth — a number between 50 and 99.9 (default: 95), the confidence interval width