NA in series
Posted: Fri Sep 14, 2018 5:41 am
I have a panel in which contains only NAs for some cross sections. I need to run individual estimations for each cross section. Obviously, if one cross sections only contains NAs, I end up with an error message (insufficient observations)
To avoid this problem I use want to use an if condition, i.e. if series<>NA then do stuff. However, I receive an error: "NA found in matrix if series<>NA then"
Any suggestions?
To avoid this problem I use want to use an if condition, i.e. if series<>NA then do stuff. However, I receive an error: "NA found in matrix if series<>NA then"
Any suggestions?