datatosttwoprop: TOST Two Proportions

View source: R/datatosttwoprop.h.R

datatosttwopropR Documentation

TOST Two Proportions

Description

TOST Two Proportions for jamovi. This function is not meant to be utilized in R.

Usage

datatosttwoprop(
  data,
  var,
  level,
  group,
  hypothesis = "EQU",
  low_eqbound = -0.1,
  high_eqbound = 0.1,
  alpha = 0.05,
  desc = FALSE,
  plot = FALSE
)

Arguments

data

.

var

.

level

.

group

.

hypothesis

'EQU' for equivalence (default), or 'MET' for minimal effects test, the alternative hypothesis.

low_eqbound

a number (default: -0.1) the lower equivalence bounds

high_eqbound

a number (default: 0.1) the upper equivalence bounds

alpha

alpha level (default = 0.05)

desc

TRUE or FALSE (default), provide descriptive statistics

plot

TRUE or FALSE (default), provide plot

Value

A results object containing:

results$tost a table
results$eqb a table
results$desc a table
results$plot an image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$tost$asDF

as.data.frame(results$tost)


TOSTER documentation built on May 29, 2024, 9:57 a.m.