# The following example is derived from the "chisq_data"
# dataset, included in the MOTE library.
# Individuals were polled about their number of friends (low, medium, high)
# and their number of kids (1, 2, 3+) to determine if there was a
# relationship between friend groups and number of children, as we
# might expect that those with more children may have less time for
# friendship maintaining activities.
chisq.test(chisq_data$kids, chisq_data$friends)
v_chi_sq(x2 = 2.0496, n = 60, r = 3, c = 3, a = .05)
# Backwards-compatible dotted name (deprecated)
v.chi.sq(x2 = 2.0496, n = 60, r = 3, c = 3, a = .05)
Run the code above in your browser using DataLab