simple_chi_square_test: Simple pair wise chi-square test

View source: R/simple_chi_square_test.R

simple_chi_square_testR Documentation

Simple pair wise chi-square test

Description

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

Usage

simple_chi_square_test(
  survery_object,
  dap,
  independent_variable_col_in_dap,
  dependent_variable_col_in_dap
)

Arguments

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


mhkhan27/illuminate documentation built on March 25, 2023, 5:41 p.m.