50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

PIPS (version 1.0.1)

PIPS-package: Generate Predicted Interval Plots

Description

Generate Predicted Interval Plots. Simulate and plot confidence intervals of an effect estimate given observed data and a hypothesis about the distribution of future data.

Arguments

Details

Package:
PIPS
Type:
Package
Version:
1.0.1
Date:
2012-08-31
License:
GPL-2
LazyLoad:
yes

References

Evans SR, Li L, Wei LJ, "Data Monitoring in Clinical Trials Using Prediction", Drug Information Journal, 41:733-742, 2007.

Li L, Evans SR, Uno H, Wei LJ. "Predicted Interval Plots: A Graphical Tool for Data Monitoring in Clinical Trials", Statistics in Biopharmaceutical Research, 1:4:348-355, 2009.

See Also

pred.int

plot.pred.int

print.pred.int

Examples

Run this code
# Make some fake data
myY<-c(rep(1,times=20),rep(0,times=80),rep(1,times=25),rep(0,times=25))
myGroup<-c(rep('A',100),rep('B',50))

# Run the programs
pips <- pred.int(y=myY, group=myGroup, N=c(200,100), 
                 data.type="binary", iters=100)
print(pips)
plot(pips)

# Run demo(package="PIPS") for more examples.

Run the code above in your browser using DataLab