Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65071

Prefix for first observation in panel?

$
0
0
I have three variables, id year effect. After using xtset id year, I want to calculate, for each id, the difference between the value of effect in each year and the value in the first year. Can I do this using lag prefixes? The help file for tsvarlist didn't provide an answer (as far as I can tell).

Sean

Viewing all articles
Browse latest Browse all 65071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>