stats_type_switch: Switch the type of statistics.

View source: R/switch-functions.R

stats_type_switchR Documentation

Switch the type of statistics.

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

stats_type_switch(type)

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")
stats_type_switch("bf")

statsExpressions documentation built on May 29, 2024, 4:28 a.m.