v.chi.sq: V for Chi-Square

Description Usage Arguments Details Value Examples

Description

This function displays V and non-central confidence interval for the specified chi-square statistic.

Usage

1
v.chi.sq(x2, n, r, c, a = 0.05)

Arguments

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

Details

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.

Value

Provides V with associated confidence intervals and relevant statistics.

v

v-statistic

vlow

lower level confidence interval of omega

vhigh

upper level confidence interval of omega

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#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.

MOTE documentation built on May 2, 2019, 5:51 a.m.