svychisqC: Chi-Squared Statistic for Relationship Between Categorical...

Description Usage Arguments Value Examples

View source: R/svychisqC.R

Description

This function reports chi-squared test statistic based on weighted dataset

Usage

1
svychisqC(formula, design)

Arguments

formula

Formula expressing the relationship between variables in the form ~ depvar + indepvar

design

Weighted design dataset (like gssD, nesD, statesD, or worldD)

Value

No return

Examples

1
2
3
   library(poliscidata)
   
   svychisqC(~ gay_rights3 + libcon3, nesD)

Example output

	Pearson's X^2: Rao & Scott adjustment

data:  survey::svychisq(formula, design, statistic = "Chisq", na.rm = TRUE)
X-squared = 1100, df = 4, p-value < 2.2e-16

poliscidata documentation built on July 8, 2020, 6:23 p.m.