Would you mind to shed a light on a observation index, which confuses me.
Here an example:
Code: Select all
create u 1 10
smpl 5 10
series y = 5
smpl @all
scalar obs = @ifirst(y) ' first non-missing observation index, supposedly to be = 5
series x(obs) = 3 ' I want x = 3 to be on 5th observation, but it appears on 6th!!! why is that???
Why series x starts from 6th observation but not 5th as any logic would suggest??
And one more thing. Why line "x(obs) = 3" writes from 6th observation and onwards rather than to appear solely on 6th (or 5th) observation?
Andrei
