[R] NAN problem

David Winsemius dwinsemius at comcast.net
Sat Jul 30 23:22:59 CEST 2011


On Jul 30, 2011, at 5:04 PM, Vishal Thapar 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.

I hope that everyone else has this problem. You do not seem to  
understand the q<dist> functions.
>
>> 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

How can the quantile function succeed with arguments from 4000 to  
9000? It might help if you would describe in natural language what you  
were trying to do.

-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list