View source: R/simple_chi_square_test.R
simple_chi_square_test | R Documentation |
The count is only based on independent variable, not a cross table of dependent and independent variable All the independent variable must be a binary variable to run the function
simple_chi_square_test(
survery_object,
dap,
independent_variable_col_in_dap,
dependent_variable_col_in_dap
)
survery_object |
Survey object from srvyr or survey package |
dap |
a data frame providing the names of dependent and independent variable |
independent_variable_col_in_dap |
column name that specify the column of independent variable in the the dap |
dependent_variable_col_in_dap |
column name that specify the column of dependent variable in the the dap |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.