v.chi.sq | R Documentation |
This function displays V and non-central confidence interval for the specified chi-square statistic.
v.chi.sq(x2, n, r, c, a = 0.05)
x2 |
chi-square statistic |
n |
sample size |
r |
number of rows in the contingency table |
c |
number of columns in the contingency table |
a |
significance level |
V is calculated by finding the square root of chi-squared divided by the product of the sample size and the degrees of freedom with the lowest value.
v = sqrt(x2 / (n * dfsmall))
Learn more on our example page.
Provides V with associated confidence intervals and relevant statistics.
v |
v-statistic |
vlow |
lower level confidence interval of V |
vhigh |
upper level confidence interval of V |
n |
sample size |
df |
degrees of freedom |
x2 |
significance statistic |
p |
p-value |
estimate |
the V statistic and confidence interval in APA style for markdown printing |
statistic |
the X2-statistic in APA style for markdown printing |
#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) #Please note, if you see a warning, that implies the lower effect should #be zero, as noted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.