Learn R Programming

PIPS (version 1.0.1)

print.pred.int: Print objects of class pred.int for predicted interval plots

Description

Print objects of class pred.int for predicted interval plots

Usage

"print"(x, pi.count = 8, digits = max(3, getOption("digits") - 3), ...)

Arguments

x
Object of class pred.int to print
pi.count
Number of predicted intervals to print. Default is 8.
digits
Number of digits to print. Default is max(3, getOption("digits")-3)
...
Additional arguments to pass to print.default

Value

Returns a copy of the object passed

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

PIPS

pred.int

plot.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 the code above in your browser using DataLab