[R] fitting truncated normal distribution

aon.912182281.tmp at aon.at aon.912182281.tmp at aon.at
Wed Aug 16 15:48:14 CEST 2006


Hello,
I am a new user of R and found the function dtnorm() in the package msm.

My problem now is, that it is not possible for me to get the mean and sd out of a sample when I want a left-truncated normal distribution starting at "0".

fitdistr(x,dtnorm, start=list(mean=0, sd=1))

returns the error message 
"Fehler in "[<-"(`*tmp*`, x >= lower & x <= upper, value = numeric(0)) :    nichts zu ersetzen"

I don't know, where to enter the lower/upper value. Is there a possibility to program the dtnorm function by myself?

Thank you very much in advance for your help,
markus

-------------------------------------------
Versendet durch aonWebmail (webmail.aon.at)



More information about the R-help mailing list