salbmCI: Sensitivity Analysis for longitudinal binary missing data

Description Usage Arguments Details Value See Also Examples

View source: R/salbmCI.R

Description

Produces confidence intervals for a salbm object.

Usage

1
salbmCI( alphas, main, bs)

Arguments

alphas

vector or sensitivity parameters.

main

set of estimates from the salbm function.

bs

set of bootstrap estimates from the salbm function.

Details

Creates confidence limits from estimates and bootstrap estimates

Value

salbmCI: returns a table which includes the following:

for each alpha and timepoint an estimate and lower and upper 95 percent confidence limits and lower and upper symmetric confindence limits.

See Also

The salbm_userDoc.pdf file in the Examples subdirectory.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data("salbmData")

Results <- salbm(
  data           =  salbmData,
  trtname        =  "trt",       # treatment indicator
  trtlev         =  c(1,2),      # treatment values 
    
  rf.ntree       =    25,        # num trees in the forest
  rf.seed        =  -172,        
  rf.sampsize    =    90,         
  rf.nodesize    =     3,

  nbootstraps    =    10,
  alpha          =  -1:1 )

CID <- salbmCI( -1:1, Results$ResultsD, Results$bootstrapsD ) 

olssol/salbm documentation built on March 19, 2020, 3:43 p.m.