quantile_fn | R Documentation |
Compute quantiles from posterior samples.
quantile_fn(x, probs)
x |
a numeric vector. |
probs |
a numeric vector specifying which quantiles are to be computed. |
A numeric vector giving the samples quantiles.
#generate random samples
x<-rnorm(1000)
#compute the 5th, 50th, 95th percentiles
quantile_fn(x,probs=c(0.05,0.5,0.95))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.