CrossScreening (version 0.1.1)

sen.ci: Point estimate and confidence interval for sensitivity analysis

Description

Point estimate and confidence interval for sensitivity analysis

Usage

sen.ci(d, mm = c(2, 2, 2), gamma = 1, alpha = 0.05, alpha.up = alpha/2,
  alpha.low = alpha/2, score.method = c("approximate", "exact"))

Arguments

d
a vector of treatment-minus-control differences
mm
a vector (m, munder, mover) that indicates the U-statistic. Does not support matrix mm in this function.
gamma
a vector of sensitivity parameters (must be >= 1).
alpha
significance level for the outer confidence interval
alpha.up
upper-tail probability of the confidence interval
alpha.low
lower-tail probability of the confidence interval
score.method
either approximate score or exact score

Value

a list
point.estimate
An interval of point estimates allowing for a bias of gamma in treatment assignment.
ci
An confidence interval allowing for a bias of gamma in treatment assignment.

Details

See the senmwCI function in the sensitivitymw package.

Examples

Run this code
data(lead)
d.lead <- lead$exposed[-21] - lead$control[-21]
sen.ci(d.lead, gamma = c(1, 2), alpha.up = 0, alpha.low = 0.05)

Run the code above in your browser using DataCamp Workspace