condquant | R Documentation |
Calculates quantiles of a conditional distribution, as well
as corresponding random numbers. The condtion is simply to restrict
the distribution (given by dist
) to a range (given by
x
)
condquant(x, dist = "normal", mu = 0, sigma = 1, randomrange = 0.9)
x |
matrix with 2 columns or vector of length 2 giving the limits for the conditional distribution |
dist |
(unconditional) distribution. Currently, only
|
mu, sigma |
locarion and scale parameter of the distribution |
randomrange |
random numbers from the conditional distribution
are drawn for the inner |
Matrix consisting of a row for each row of x
for which
x[,1] differs from x[,2] and the following columns:
median |
Median |
lowq, uppq |
lower and upper quartiles |
random |
random number according to the conditional distribution (one for each row) |
prob |
probability of the condition being true |
index |
(row) index of the corresponding entry in the input 'x' |
Attribute distribution
comprises the arguments
dist, mu, sigma
.
Werner A. Stahel, Seminar for Statistics, ETH Zurich
condquant(cbind(seq(-2,1),c(0,1,Inf,1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.