Skip to content
Prev 336665 / 398502 Next

why warnings message is there after running the plm regression

On 02/15/2014 03:19 PM, Ramesh Chandra Das wrote:
Hi Ramesh,
This warning is given when a vector like this:

le<-c(4,2,6,5)

is used in a test like this:

if(is.na(le)) ...

R only looks at the first value in the vector for the test, but warns 
you that there were other values that were not tested. If the test was:

if(is.na(le[1]))

It doesn't matter if "le" has only one value or more than one and you 
don't get the warning. It usually doesn't mess anything up.

Jim