pseudo_score_ci {door} | R Documentation |
Calculate pseudo score type confidence interval of DOOR probability
Description
Some code of this function is adpated from the now-archived CRAN package "cta", originally authored by Joseph B. Lang. The original package was licensed under GPL-2, and the adapted code complies with this license.
Usage
pseudo_score_ci(
y1 = NULL,
y2 = NULL,
n1 = NULL,
n2 = NULL,
summary_obj = NULL,
data_type = c("freq", "prop"),
cil = 0.4,
ciu = 0.6,
conf_level = 0.95,
epsilon = 1e-04,
maxiter = 100
)
Arguments
y1 , y2 |
Numeric vectors of DOOR proportion or frequency distribution for group 1, group 2. The entries should be ordered from most desirable to least desirable |
n1 , n2 |
Sample sizes of group 1, group 2; must be specified if method = "prop" |
summary_obj |
A object returned by |
data_type |
Either "freq" for frequency input or "prop" for proportion input when using y1 and y2 |
cil , ciu |
Initial guesses of lower and upper limit, respectively |
conf_level |
Confidence level |
epsilon |
Convergence tolerance. Default to 1e-4 |
maxiter |
Maximum iteration |
Value
pseudo-score type CI and the number of iterations to calculate the lower bound and upper bound
See Also
Examples
pseudo_score_ci(c(60,30,10), c(50,40,10))