trinomial_test: Trinomial Test

View source: R/TrinomialTest.R

trinomial_testR Documentation

Trinomial Test

Description

Performs the trinomial test on either two data vectors or a vector of containing the counts of positive, tied, and negative differences.

Usage

trinomial_test(
  col1,
  col2 = NULL,
  alternative = c("two.sided", "greater", "less"),
  p_tie = NULL,
  print_info = TRUE
)

Arguments

col1

first data vector or a vector of (positive, tie, negative) counts of differences.

col2

second data vector.

alternative

the type of hypothesis test to be performed.

p_tie

theoretical proportion of ties; calculated from the data by default.

print_info

logical. If TRUE the hypotheses and p-value of the test are returned.

Value

An output object containing the number of observations; test statistic; p-value; hypotheses; number of positive, tied, or negative differences; critical value; and reverse flag notice for the trinomial test.


douglaswhitaker/GridItemTools documentation built on Aug. 2, 2022, 4:32 a.m.