seq_aipe_contrast: seq_aipe_contrast

View source: R/seq_aipe_contrast.R

seq_aipe_contrastR Documentation

seq_aipe_contrast

Description

Sequential approach to Accuracy in Parameter Estimation for a Contrast

Usage

seq_aipe_contrast(
  alpha = 0.05,
  omega,
  data = NULL,
  coef = NULL,
  balanced = TRUE,
  Group.1 = NULL,
  Group.2 = NULL,
  pilot = FALSE,
  m0 = 4
)

Arguments

alpha

The significance level., default is 0.05

omega

omega,

data

The dataset, default is NULL

coef

The coefficients, default is NULL

balanced

Is the data balanced, default is TRUE

Group.1

The first group

Group.2

The second group

pilot

Is pilot of interest? Default is FALSE

m0

The initial sample size.

Value

The current sample size, the current contrast, and an indicator of if the criterion is satisfied.

Author(s)

Ken Kelley KKelley@nd.edu, Francis Bilson Darku FBilsonD@nd.edu, Bhargab Chattopadhyay Bhargab@iiitvadodara.ac.in

Examples

pilot_ss <- seq_aipe_contrast(alpha=0.05, omega=0.2, pilot=TRUE)
SLS <- matrix(c(rexp(pilot_ss, rate=0.05),
rexp(pilot_ss, rate=0.05)), ncol = 2)
seq_aipe_contrast(alpha=0.05, omega=0.2,data = SLS)


yelleKneK/SMSD documentation built on Nov. 23, 2022, 6:40 p.m.