Comparing series with missing values
Posted: Sun Dec 30, 2012 5:07 pm
I need to write an if statement that compares if some series are identical, but I am having some troubles with series that contain missing values. What I would like to write is this
but that returns an error whenever a series contains a missing value. What to do?
Code: Select all
!error=0
for %s {%series}
'If all observations are identical in the two series (irrespective of whether those identical observations are missing or not)
if {%s}<>_{%s} then
!error=1
endif
next