v.chi.sq: V for Chi-Square

v.chi.sqR Documentation

V for Chi-Square

Description

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

Usage

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 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

Examples


#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.

doomlab/MOTE documentation built on April 17, 2022, 2:08 a.m.