Description Usage Arguments Value Examples
View source: R/hypothesis_tests.R
hypothesis_test_chisquared_select_one Perform a chi squared test on a select one question against another.
1 2 | hypothesis_test_chisquared_select_one(dependent.var, independent.var,
design)
|
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. |
A list with the results of the test (Chi Squared statistics, p value) or the error message.
1 | ## Not run: hypothesis_test_chisquared_select_one("population_group", "resp_gender", design)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.