stats_type_switch: Switch type of statistics.

Description Usage Arguments Examples

View source: R/stats_type_switch.R

Description

Relevant mostly for ggstatsplot and statsExpressions packages, where different statistical approaches are supported via this argument: parametric, non-parametric, robust, and Bayesian. This switch function converts strings entered by users to a common pattern for convenience.

Usage

1

Arguments

type

A character specifying the type of statistical approach:

  • "parametric"

  • "nonparametric"

  • "robust"

  • "bayes"

You can specify just the initial letter.

Examples

stats_type_switch("p")
1
#> [1] "parametric"
stats_type_switch("bf")
1
#> [1] "bayes"

IndrajeetPatil/ipmisc documentation built on Oct. 22, 2021, 6:36 a.m.