hypothesis_test_chisquared_select_one: hypothesis_test_chisquared_select_one Perform a chi squared...

Description Usage Arguments Value Examples

View source: R/hypothesis_tests.R

Description

hypothesis_test_chisquared_select_one Perform a chi squared test on a select one question against another.

Usage

1
2
hypothesis_test_chisquared_select_one(dependent.var, independent.var,
  design)

Arguments

dependent.var

string with the column name in ‘data' of the dependent variable. Should be a ’select one'.

design

the svy design object created using map_to_design or directly with svydesign

independen.var

string with the column name in ‘data' of the independent variable. Should be a ’select one' with few (<15) categories.

Value

A list with the results of the test (Chi Squared statistics, p value) or the error message.

Examples

1
## Not run: hypothesis_test_chisquared_select_one("population_group", "resp_gender", design)

mabafaba/hypegrammaR documentation built on Oct. 2, 2019, 11:33 a.m.