Description Usage Arguments Value Note Author(s) Examples
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
)
1 |
x |
matrix with 2 columns or vector of length 2 giving the limits for the conditional distribution |
dist |
(unconditional) distribution. Currently, only normal and logistic are implemented. |
sig |
standard deviation for normal distribution |
randomrange |
random numbers from the conditional distribution
are drawn for the inner |
Matrix consisting of a row for each row of x
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 |
The function is needed for residuals.polr
and
residuals.survreg
Werner A. Stahel, Seminar for Statistics, ETH Zurich
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.