statistical_test: Function for one way ANOVA/T/Chi-square test

View source: R/statistical_test.R

statistical_testR Documentation

Function for one way ANOVA/T/Chi-square test

Description

Function for one way ANOVA/T/Chi-square test

Usage

statistical_test(
  data,
  kobo_survey_sheet,
  variable_1,
  target_Variables,
  ci = 0.95,
  simulate.p.value = T
)

Arguments

data

Data

kobo_survey_sheet

Questions/survey sheet from the kobo tool. It should be a data frame.

variable_1

Mostly independent variable (It might be the dis/aggregation level). It should be a character vector.

target_Variables

Mostly dependent variables (On which variables you want to apply the statistical test)

ci

Confidence interval. The default is .95

simulate.p.value

A logical vector indicating whether to compute p-values by Monte Carlo simulation. This parameter only applied to Chi square test. TRUE is default. FLASE is preferable when you have large data set.

Details

Matrix for statistical test (when to use what test)

Categorical Numerical
Categorical Chi Square Test T test: When there is only 2 groups/ ANOVA: When there is more than 2 groups
Numerical Regression (Not included in this function) Perason's Correlation test

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