comp.test: Rejection probability test

Description Usage Arguments Details Value Author(s)

View source: R/tcomp.R

Description

estimates the rejection probability for a test at a given level.

Usage

1
comp.test (r, level, ng, ns, moys, varg, vars, method = "def.t")

Arguments

r

the number of simulated data sets to use in finding each estimate.

level

the significance level.

ng

the number of groups in a data set.

ns

the number of subjects per group.

moys

the vector of means for the data sets.

varg

the variance of group means.

vars

the variance within a group.

method

a character value specifying which t-test to apply. "def.t" (by default) indicates the standard t-test and "mod.t", the modified t-test.

Details

The test is performed for various values of the overall mean, and the rejection probability estimated for each such value.

Value

Returns a vector of estimated rejection probabilities for each mean.

Author(s)

Sewanou Honfo <honfosewanou@gmail.com> and Romain Glèlè Kakaï <glele.romain@gmail.com>/ LABEF_07_2019


Sewanou/ProjectSC2019 documentation built on Oct. 30, 2019, 11:52 p.m.