Learn R Programming

statsExpressions (version 1.6.0)

extract_stats_type: 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

extract_stats_type(type)

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

Run this code
extract_stats_type("p")
extract_stats_type("bf")

Run the code above in your browser using DataLab