Re: [R] fitting data with conditions

2007-03-28 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: > Mich beschäftig folgende Fragestellung. Ich kenne die Verteilung > (lognormal) zusätzlich weiss ich das 99%, das 90% und das 1% Quantil. > Gibt es in R eine Möglichkeit die Lognormalverteilung zu finden, das > heisst den korrespondierenden logmean und logsd? > (Nich

Re: [R] fitting data with conditions

2007-03-28 Thread Uwe Ligges
This mailing list is in english If you know that for the quantiles, say: 1%: 3 90%: 5.2 99%: 6.1 then you could quickly look for the minimum of the following function foo <- function(x){ (qlnorm(0.01, meanlog = x[1], sdlog = x[2]) - 3)^2 + (qlnorm(0.9, meanlog = x[1], sdlog = x

[R] fitting data with conditions

2007-03-28 Thread [EMAIL PROTECTED]
Mich beschäftig folgende Fragestellung. Ich kenne die Verteilung (lognormal) zusätzlich weiss ich das 99%, das 90% und das 1% Quantil. Gibt es in R eine Möglichkeit die Lognormalverteilung zu finden, das heisst den korrespondierenden logmean und logsd? Vielen Dank für ihre Hilfe Gruss Yvonne _