[R] Error in if (any(ch)) { : missing value where TRUE/FALSE needed

Ben Bolker bbolker at gmail.com
Thu Oct 4 01:09:53 CEST 2012


 <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




More information about the R-help mailing list