Learn R Programming

sasLM (version 0.10.7)

CumAlpha: Cumulative Alpha with various z's and ti

Description

Cumulative alpha values with repeated hypothesis with changing bound z-value and time of test (ti).

Usage

CumAlpha(z, side=2, ti=NULL, c0=NULL, Seed=5)

Value

The result is a matrix.

ti

time of test

cum.alpha

cumulative alpha valued

Arguments

z

vector of upper z-value bounds for the repeated hypothesis test

side

1=one-side test, 2=two-side test

ti

vector of times (or information amount) of test. All values should be [0, 1] and sorted. If not specified, equal interval is assumed.

c0

correlation matrix. if not specified, Brownian motion assummed.

Seed

seed value for mtvtnorm::pmvnorm function

Author

Kyun-Seop Bae k@acr.kr

Details

It calculates cumulative alpha-values for the repeated hypothesis test with a vector of upper bound z-value. If the times of test is not specified, linear (proportional) increase of information amount and Brownian motion of z-value, i.e. the correlation is sqrt(t_i/t_j).

References

Reboussin DM, DeMets DL, Kim K, Lan KKG. Computations for group sequential boundaries using the Lan-DeMets function method. Controlled Clinical Trials. 2000;21:190-207.

Examples

Run this code
  CumAlpha(z=rep(qnorm(1 - 0.05/2), 10)) # two-side Z-test with alpha=0.05 for ten times

Run the code above in your browser using DataLab