analyse_indicator: Complete analysis for one hypothesis

Description Usage Arguments Details Value Examples

Description

Produce summary statistics, hypothesis tests and plot objects for a hypothesis

Usage

1
2
3
4
analyse_indicator(data, dependent.var, independent.var = NULL,
  hypothesis.type, sampling.strategy.cluster = FALSE,
  sampling.strategy.stratified = FALSE,
  do.for.each.unique.value.in.var = NULL)

Arguments

data
dependent.var

string with the column name in 'data' of the dependent variable

hypothesis.type

the type of hypothesis as a string. Allowed values are "direct_reporting", "group_difference", "limit", "correlation" or "change"

sampling.strategy.cluster

set to TRUE if you used cluster sampling

sampling.strategy.stratified

set to TRUE if you used stratified sampling

do.for.each.unique.value.in.var

if you want to repeat the analysis for multiple subsets of the data, specify the column name in 'data' by which to split the dataset

independen.var

string with the column name in 'data' of the independent variable

Details

this function takes the data, information about your variables of interest, hypothesis type and sampling strategy. It selects the appropriate summary statistics, hypothesis test and visualisation and applies them. it uses map_to_case,map_to_indicator,map_to_hypothesis,map_to_visualisation

Value

A list with 1. the summary.statistic, 2. the hypothesis.test.result, and 3. the visualisation as a ggplot object

Examples

1
plot_crayons()

mabafaba/hypergrammaR documentation built on May 14, 2019, 2:08 p.m.