Learn R Programming

BayesRepDesign (version 0.42)

print.ssdRS: Print method for class "ssdRS"

Description

Print method for class "ssdRS"

Usage

# S3 method for ssdRS
print(x, ...)

Value

Prints text summary in the console and invisibly returns the

"ssdRS" object

Arguments

x

Object of class "ssdRS"

...

Other arguments (for consistency with the generic)

Author

Samuel Pawel

Examples

Run this code
## specify design prior
to1 <- 2
so1 <- 1
dprior <- designPrior(to = to1, so = so1)

## compute required standard error for significance at one-sided 2.5%
sregionfunSig <- function(sr, alpha = 0.025) {
    successRegion(intervals = cbind(stats::qnorm(p = 1- alpha)*sr, Inf))
}
ssd1 <- ssd(sregionfun = sregionfunSig, dprior = dprior, power = 0.8)
print(ssd1)

Run the code above in your browser using DataLab