This question is from N. J. Cox's article: https://journals.sagepub.com/doi/pdf...867X1101100210. See section 6.
I don't know why basevalue has 0 for all year before 1960 and 73.1 for all year after 1960.
My understanding is that only year 1960 should give 73.1, and all other observations other than year 1960 should have missing value.
Code:
sysuse uslifeexp, clear gen basevalue = sum((year == 1960) * le_female)
My understanding is that only year 1960 should give 73.1, and all other observations other than year 1960 should have missing value.
Comment