liang.che at us.pwc.com
2012-Oct-03 17:47 UTC
[R] Error in if (any(ch)) { : missing value where TRUE/FALSE needed
Can someone please help with the error message below? thanks! Start: AIC=-Inf value ~ 1 + Core_CPI__ + GDP_change + Unemployment + housing + interest + S_P + d1 + d2 + d3 Error in if (any(ch)) { : missing value where TRUE/FALSE needed In addition: Warning message: attempting model selection on an essentially perfect fit is nonsense ______________________________________________________________________ The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership. This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries. [[alternative HTML version deleted]]
Ben Bolker
2012-Oct-03 23:09 UTC
[R] Error in if (any(ch)) { : missing value where TRUE/FALSE needed
<liang.che <at> us.pwc.com> writes:> > Can someone please help with the error message below? > > thanks! > > Start: AIC=-Inf > value ~ 1 + Core_CPI__ + GDP_change + Unemployment + housing + > interest + S_P + d1 + d2 + d3 > > Error in if (any(ch)) { : missing value where TRUE/FALSE needed > In addition: Warning message: > attempting model selection on an essentially perfect fit is nonsense >Without a reproducible example we can't help. (See http://tinyurl.com/reproducible-000 , for example) Have you checked to see if you are overfitting? Have you possibly read in a numeric variable as a factor by accident? Ben Bolker
Uwe Ligges
2012-Oct-04 17:51 UTC
[R] Error in if (any(ch)) { : missing value where TRUE/FALSE needed
On 03.10.2012 19:47, liang.che at us.pwc.com wrote:> Can someone please help with the error message below?Not really, the message says it all: You cannot improve the AIC since it is numerically -Inf already! Uwe Ligges> > thanks! > > > > Start: AIC=-Inf > value ~ 1 + Core_CPI__ + GDP_change + Unemployment + housing + > interest + S_P + d1 + d2 + d3 > > Error in if (any(ch)) { : missing value where TRUE/FALSE needed > In addition: Warning message: > attempting model selection on an essentially perfect fit is nonsense > > > ______________________________________________________________________ > The information transmitted, including any attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited, and all liability arising therefrom is disclaimed. If you received this in error, please contact the sender and delete the material from any computer. PricewaterhouseCoopers LLP is a Delaware limited liability partnership. This communication may come from PricewaterhouseCoopers LLP or one of its subsidiaries. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >