Learn R Programming

gsearly (version 1.0.0)

print.gsearly: Print a gsearly model

Description

Prints gsearly model details.

Usage

# S3 method for gsearly
print(x, digits=4, ...)

Value

A list containing the following components.

title

Package name and version number.

call

Call used to create mod.

rdata

See details in gsearlyModel or gsearlyUser.

idata

See details in gsearlyModel or gsearlyUser.

power

See details in gsearlyModel or gsearlyUser.

Arguments

x

A fitted gsearly object from gsearlyModel or gsearlyUser.

digits

The number of digits required for numeric output.

...

Further arguments passed to print (not currently implemented).

Examples

Run this code

 # For 90 percent power (pow), a call to gsearlyModel provides a feasible design
 fp <- c(0.0000,0.0010,0.0250)
 tn <- c(0.4800,0.7200,0.9750)
 rctdesign <- gsearlyModel(rmodel="dilin", trecruit=36, s=3, tfu=c(3,6,12),
                   tinterims=c(16,31), pow=0.8,
                   cmodel="exponential", sd=20, rho=0.75, theta=8, fp=fp, tn=tn)
 rctdesign
 print(rctdesign)
 str(print(rctdesign))

Run the code above in your browser using DataLab