Prob {ProbYX} | R Documentation |
Estimation of the stress-strength model R = P(Y<X)
Description
Compute confidence intervals and point estimates for the probability R, under parametric model assumptions for Y and X. Y and X are two independent continuous random variable from two different populations.
Usage
Prob(ydat, xdat, distr = "exp", method = "RPstar", level = 0.05)
Arguments
ydat |
data vector of the sample measurements from Y. |
xdat |
data vector of the sample measurements from X. |
distr |
character string specifying the type of distribution assumed for Y and X. Possible choices for |
method |
character string specifying the methodological approach used for inference (confidence intervals and point estimates) on the AUC.
The argument |
level |
it is the |
Value
PROB |
Point estimate of |
C.Interval |
Confidence interval of R at confidence level |
Author(s)
Giuliana Cortese
References
Cortese G., Ventura L. (2013). Accurate higher-order likelihood inference on R=P(Y<X)
. Computational Statistics, 28:1035-1059.
See Also
Examples
# data from the first population
Y <- rnorm(15, mean=5, sd=1)
# data from the second population
X <- rnorm(10, mean=7, sd=1.5)
level <- 0.01 ## \eqn{\alpha} level
# estimate and confidence interval under the assumption of two
# normal variables with different variances.
Prob(Y, X, "norm_DV", "RPstar", level)
# method has to be set equal to "RPstar".