Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread William Dunlap via R-help
See if you can use is.nan() to figure out which values of B, Bmax, ..., cause the result to be NaN (not a number). One possibility is if B were always negative so abs(B)/max(B) could be negative: (negative)^(non-integer power) is NaN. Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, May 3, 2

Re: [R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread David Winsemius
> On May 3, 2016, at 3:54 AM, T.Riedle wrote: > > Something is wrong here. The formula > > pmin(psi/VaR,exp(((abs(B)/Bmax)^w2)*log((psi/VaR),2.718182))) > > > provides a time series. Nevertheless, the returned values are incorrect and > it produces NANs. The only thing we can conclude at th

[R] Fw: Generating 3Dplot in lattice package

2016-05-03 Thread T.Riedle
Something is wrong here. The formula pmin(psi/VaR,exp(((abs(B)/Bmax)^w2)*log((psi/VaR),2.718182))) provides a time series. Nevertheless, the returned values are incorrect and it produces NANs. From: William Dunlap Sent: 02 May 2016 20:04 To: T.Riedle Cc: r-h