summary.bssrest: Summarizing Blinded Sample Size Reestimation

Description Usage Arguments Details See Also Examples

View source: R/summary.bssrest.r

Description

summary method for class "bssrest".

Usage

1
2
## S3 method for class 'bssrest'
summary(object, ...)

Arguments

object

an object of class "bssrest".

...

Arguments to be passed to or from other methods.

Details

summary.bssrest gives back blinded sample size estimates. Furthermore, inputs are displayed for double checking.

See Also

n.nb.inar1 for initial sample size estimates within the NB-INAR(1) model.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#Calculate required sample size to find significant difference with
#80% probability when testing the Nullhypothesis H_0: mu_T/mu_C >= 1
#assuming the true effect delta is 0.8 and rate, size and correlation
#parameter in the control group are 2, 1 and 0.5, respectively.

estimate<-n.nb.inar1(alpha=0.025, power=0.8, delta=0.8, muC=2, size=1, rho=0.5, tp=7, k=1)

#Simulate data
set.seed(8)
placebo<-rnbinom.inar1(n=50, size=1, mu=2, rho=0.5, tp=7)
treatment<-rnbinom.inar1(n=50, size=1, mu=1.6, rho=0.5, tp=7)

#Blinded sample size reestimation
estimate<-bssr.nb.inar1(alpha=0.025, power=0.8, delta=0.8, x=rbind(placebo, treatment),
  n=c(50,50), k=1)
summary(estimate)

spass documentation built on Jan. 13, 2021, 7:57 p.m.

Related to summary.bssrest in spass...