simulate_trials: Simulate trials

Description Usage Arguments Value Author(s)

Description

Simulate trial data

Usage

1
2
simulate_trials(MCMC, n1, n, n3 = 0, r = 1/2, rfs = rnorm, rss = rnorm,
  ncp = 0, cond = c("both", "first", "none"), restricted = TRUE)

Arguments

MCMC

Number of trials to simulate

n1

First stage sample size

n

Total preplanned sample size

n3

Third stage sample size (maybe a function of x,g2)

rfs

First stage random number generator

rss

Second stage random number generator

ncp

Non-centrality parameter

cond

Condition on first and second stage observations ("both"), only on first stage observations ("first"), or unconditional of observations

Value

list object with simulated data

Author(s)

Florian Klinglmueller


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