chi.sq {vannstats} | R Documentation |
Simplified Chi Square
Description
This function simplifies the call for Pearson's Chi Square test (chi.sq) on a given data frame.
Usage
chi.sq(df, var1, var2, correct = FALSE, post = FALSE)
Arguments
df |
data frame to read in. |
var1 |
the dependent/outcome variable, |
var2 |
the main independent/predictor variable, |
correct |
logical (default set to |
post |
logical (default set to |
Value
This function returns the summary results table for a Pearson's Chi Square test, examining the relationship between var1
from data frame df
, and var2
.
Examples
data <- mtcars
chi.sq(data,vs,am)
[Package vannstats version 1.3.4.14 Index]