Description Usage Arguments Examples
This function is nothing but a wrapper for quantile
.
1 | obsQuantiles(data, probs = seq(0, 1, 0.01), what = "cr")
|
data |
A dataframe with: a column named |
probs |
vector of probabilities for which the corresponding values should be called |
what |
Character. |
1 2 3 4 5 6 7 8 9 10 | tt = seq(0, 5, .01)
pars = c(.8, 2, .5, .5, .5, # condition 1
.8, 3, .5, .5, .5, # condition 2
.8, 4, .5, .5, .5) # condition 3
pdfND = dbeta(tt, 10, 30)
# simulate data
data = simData(n = 3e3, pars = pars, tt = tt, pdfND = pdfND)
probs = seq(0, 1, .01)
q = obsQuantiles(data, probs = probs)
matplot(probs, q, type = 'l', las = 1, bty = 'n')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.