jmv

Proportion Test (N Outcomes)

χ² Goodness of fit

Example usage

 propTestN(data, var="outcome", ratio=c(1,1,1))
 

Arguments

data — the data as a data frame

var — a string naming the variable of interest in data

counts — a string naming a variable in data containing counts, or NULL if each row represents a single observation

expectedTRUE or FALSE (default), whether expected counts should be displayed

ratio — a vector of numbers: the expected proportions