View source: R/statistical_test.R
statistical_test | R Documentation |
Function for one way ANOVA/T/Chi-square test
statistical_test(
data,
kobo_survey_sheet,
variable_1,
target_Variables,
ci = 0.95,
simulate.p.value = T
)
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. |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.