ggstatsplot (version 0.0.6)

subtitle_onesample: Making text subtitle for one sample t-test and its nonparametric and robust equivalents.

Description

Making text subtitle for one sample t-test and its nonparametric and robust equivalents.

Usage

subtitle_onesample(data = NULL, x, type = "parametric",
  test.value = 0, bf.prior = 0.707, robust.estimator = "onestep",
  nboot = 100, k = 3, messages = TRUE)

Arguments

data

Dataframe from which variables specified are preferentially to be taken. This argument is optional.

x

A numeric variable.

type

Type of statistic expected ("parametric" or "nonparametric" or "robust" or "bayes"). Abbreviations accepted are "p" or "np" or "r" or "bf", respectively.

test.value

A number specifying the value of the null hypothesis (Default: 0).

bf.prior

A number between 0.5 and 2 (default 0.707), the prior width to use in calculating Bayes factors.

robust.estimator

If test = "robust" robust estimator to be used ("onestep" (Default), "mom", or "median"). For more, see ?WRS2::onesampb.

nboot

Number of bootstrap samples for robust one-sample location test (Default: 100).

k

Number of digits after decimal point (should be an integer) (Default: k = 3).

messages

Decides whether messages references, notes, and warnings are to be displayed (Default: TRUE).

See Also

gghistostats

Examples

Run this code
# NOT RUN {
# for reproducibility
set.seed(123)

subtitle_onesample(
  x = iris$Sepal.Length,
  type = "r"
)
# }

Run the code above in your browser using DataLab