gonogoSim: Run adaptive sensitivity tests in simulation mode.

Description Usage Arguments Value

View source: R/gonogo.R

Description

Run adaptive sensitivity tests in simulation mode.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
gonogoSim(
  mlo,
  mhi,
  sg,
  n2 = 0,
  n3 = 0,
  p = 0,
  lam = 0,
  dm = 0,
  ds = 0,
  reso = 0,
  ln = F,
  plt = 0,
  iseed = -1,
  IIgo = T,
  M = 1,
  test = 1,
  BL = c(4, 1, 0)
)

Arguments

mlo

Guess for μlo, which is the low end of the range where the 50/50 point is expected.

mhi

Guess for μhi, which is the high end of the range where the 50/50 point is expected.

sg

Guess for σ, which is a measure of how quickly the probability rises with the input variable x.

n2

size of phase II (could be 0)

n3

size of phase III (could be 0)

p

to approximate the stress level Lp - for phase III only

lam

the lambda parameter needed for phase III only

dm

deviation from a target mean (tm) based on mlo, mhi, and sg

ds

deviation from a target standard deviation (ts) based on mlo, mhi, and sg

reso

resolution of stimulus, e.g. 0.01

ln

set to T to use log transform which keeps recommended stimulus positive, defaults to F

plt

1 (for a history plot of a test) or 0 (no plot, the default)

iseed

initialization of the random seed (-1, the default, for full random)

IIgo

when T, test proceeds unencumbered; when F, test stops at end of stage 2 of phase I

M

factor to scale stresses, defaults to 1

test

number corresponding to test type 1 = 3pod 2 = Neyer 3 = Bruceton 4 = Langlie

BL

vector of 3 integers, needed for Bruceton or Langlie tests only

Value

List containing results.


joncutting/gonogo documentation built on Jan. 23, 2022, 7:01 p.m.