ggstatsplot (version 0.0.8)

subtitle_t_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_t_onesample(data = NULL, x, type = "parametric",
  test.value = 0, bf.prior = 0.707, robust.estimator = "onestep",
  conf.level = 0.95, nboot = 100, k = 2, 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").Corresponding abbreviations are also accepted: "p" (for parametric), "np" (nonparametric), "r" (robust), or "bf"resp.

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.

conf.level

A scalar value between 0 and 1. If unspecified, the default is to return 95% lower and upper confidence intervals (0.95).

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 = 2).

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_t_onesample(
  x = iris$Sepal.Length,
  type = "r"
)
# }

Run the code above in your browser using DataCamp Workspace