Why are missing values not ignored by default?

Right, what should this do?

a=[1,2,missing,3,4]
b = lag(a)
cor(a,b)
1 Like