map_to_summary_statistic: Map to summary statistic

Description Usage Arguments Value Examples

View source: R/map_to_summary_statistic.R

Description

selects an appropriate summary statistic function based on the analysis case

Usage

1
2
map_to_summary_statistic(design, dependent.var, independent.var, case,
  questionnaire = NULL, confidence_level = 0.95)

Arguments

design

the design object (map_to_design())

dependent.var

the name of the dependent variable

independent.var

the name of the independent variable

case

a string uniquely identifying the analysis case. output of map_to_case().

questionnaire

the questionnaire (from load_questionnaire())

confidence_level

the confidence level to be used for confidence intervals (default: 0.95)

Value

a _function_ that computes the relevant summary statistic

Examples

1
2
3
4
5
## Not run: map_to_summary_statistic("group_difference_categorical_categorical")
## Not run: my_case<- map_to_case( ... )
my_sumstat <- map_to_summary_statistic(my_case)
my_sumstat( ... )
## End(Not run)

mabafaba/hypegrammaR documentation built on Oct. 2, 2019, 11:33 a.m.