Learn R Programming

poliscidata (version 2.3.0)

svychisqC: Chi-Squared Statistic for Relationship Between Categorical Variables using Weighted Dataset

Description

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

Usage

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

Run this code
# NOT RUN {
   library(poliscidata)
   
   svychisqC(~ gay_rights3 + libcon3, nesD)
# }

Run the code above in your browser using DataLab