# Example 1: Phi coefficient for 'vs' and 'am'
effsize(mtcars, vs, am)
# Alternative specification without using the '...' argument
effsize(mtcars[, c("vs", "am")])
# Example 2: Bias-corrected Cramer's V for 'gear' and 'carb'
effsize(mtcars, gear, carb)
# Example 3: Cramer's V (without bias-correction) for 'gear' and 'carb'
effsize(mtcars, gear, carb, adjust = FALSE)
# Example 4: Adjusted Pearson's contingency coefficient for 'gear' and 'carb'
effsize(mtcars, gear, carb, type = "cont")
# Example 5: Fei for 'gear'
effsize(mtcars, gear)
# Example 6: Bias-corrected Cramer's V for 'cyl' and 'vs', 'am', 'gear', and 'carb'
effsize(mtcars, cyl, vs:carb)
# Alternative specification without using the '...' argument
effsize(mtcars[, c("cyl", "vs", "am", "gear", "carb")])
if (FALSE) {
# Example 7a: Write Results into a text file
effsize(mtcars, cyl, vs:carb, write = "Cramer.txt")
# Example 7b: Write Results into a Excel file
effsize(mtcars, cyl, vs:carb, write = "Cramer.xlsx")}
Run the code above in your browser using DataLab