Hi Michael, David, I agree it was an error on my part. It should have been plnorm only. I should have looked more closely. Thanks for the help!
Best, Vishal On Sat, Jul 30, 2011 at 5:18 PM, R. Michael Weylandt < michael.weyla...@gmail.com> <michael.weyla...@gmail.com> wrote: > The qDIST() functions are the inverse of the pDIST() functions, that is to > say, the inverse CDFs of whatever distribution you are interested in. > > Your code is asking it to plot values of the inverse CDF from x from 4000 > to 9000, which are impossible values. (I hope the reason for this is evident > to you) > > I'm not quite sure what you are meaning to plot, but you may perhaps mean > the pDIST() functions instead. Certainly changing to plnorm() works on my > machine, as does dropping xlim=c(4000,9000) and letting curve plot over the > well-defined range [0,1]. > > Michael Weylandt > > PS -- Thank you for providing a minimum working example and documentation > of your error messages. > > On Sat, Jul 30, 2011 at 4:04 PM, Vishal Thapar <vishaltha...@gmail.com>wrote: > >> Hi All, >> >> Did anyone else have a problem like this? I am sorry if its a small issue, >> I >> seem to not understand what to do to get rid of this error. >> >> > Sigma >> [1] 0.1939025 >> > MuRest >> [1] 8.512772 >> > TauZero >> [1] 0.1 >> > curve(qlnorm(x,-TauZero+MuRest, Sigma,lower.tail=F), xlim=c(4000,9000), >> ylim=c(0,.99),xlab="", ylab="") >> Warning message: >> In qlnorm(p, meanlog, sdlog, lower.tail, log.p) : NaNs produced >> >> Thanks in advance for the help. >> >> Best, >> >> Vishal >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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. >> > > [[alternative HTML version deleted]] ______________________________________________ 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.