AnalyzeSimonDsgn: Analysis of simulated Simon's design trials

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Analyses the trials simulated by SimulateSimonDsgn.

Usage

1
AnalyzeSimonDsgn(replicates = NA, basedir = NA)

Arguments

replicates

Number of trials to be analysed. By default all simulated trials are analysed.

basedir

The root directory in which simulations were performed. The current working directory is assumed by default. It must contain all the files and folders created by SimulateSimonDsgn.

Details

In addition to hypothesis testing, the response rate is estimated using different estimators: pm, pg, pu, pp and pk.

Value

Creates two data files in basedir containing results for optimal (ResultsOptimalDesign.csv) and minimax (ResultsMinimaxDesign.csv). The files contain a trial ID, stage 1, stage 2 and overall number of successful responses, s1, s2 and s, sample sizes (equal to those pre-specified by design), n1, n2 and n, and critical values, r1 and r. p0 the response rate assumed under H_0 and dsgnp1 under H_1. p1 is the true response rate (used for generating trial data). pm1 and pm2 are, respectively, pm based only of stage 1 and stage 2 data. stop indicates whether the trial stopped at first stage (stop = 1), and success indicates whether H_0 was rejected (success = 1).

Author(s)

Arsenio Nhacolo

See Also

CalculateSimonDsgn, SimulateSimonDsgn, AnalyzePerformanceSimon and AnalyzeSimonDsgnAdaptN.

Examples

1

arsenionhacolo/InferenceBEAGSD documentation built on May 9, 2019, 4:10 a.m.