Description Usage Arguments Examples
For dichotomous variables, this function produces a table with the frequency, proportion, and N missing for each variable, and p-value for the Chi-squared test comparing groups (if group is specified)
1 |
df |
dataframe |
vars |
list of dichotomous variables to calculate |
group |
grouping categorical variable |
1 2 3 4 5 6 | data(airquality)
airquality$tempGT70[airquality$Temp > 70] = 1
airquality$tempGT70[airquality$Temp <= 70] = 0
airquality$windGT10[airquality$Wind > 10] = 1
airquality$windGT10[airquality$Wind <= 10] = 0
freqTab(airquality, c('tempGT70', 'windGT10'), group = 'Month')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.