type1: Type 1 error

Description Usage Arguments Value Author(s)

Description

Template function to compute the Type 1 error of a trial design

Usage

1
2
type1(X = rnorm, X2 = NULL, n, n1, stat = meandiff, B, MCMC,
  one_sample = FALSE, ...)

Arguments

X

Random number generater for first stage observations

X2

Random number generator for second stage observations (if NULL first stage generator will be used)

n

pre-planned total sample size

n1

first stagen sample size

B

number of permutations to be used to compute the permutation null distribution

MCMC

number of simulation runs for Type I error estimation

one_sample

should a one-sample test be simulated

...

additional functions to conditional error rate function

Value

matrix of p-values from different test procedures

Author(s)

Florian Klinglmueller


floatofmath/adaperm documentation built on May 16, 2019, 1:18 p.m.