Hi,

I guess that my problem has an obvious answer, but I have not been able to 
find it.

Suppose I create a custom function, consisting of two beta-distributions:

myfunction <- function(x) {
  dbeta(x,2,6) + dbeta(x,6,2)
}

How can I calculate the quantiles of myfunction? 

I have not seen any continous function treated in the docs, and applying the 
"quantile function" gives me an error (since it seems only to be defined on 
lists and atoms).

Thank you in advance,

Gerhard

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to