Hello everybody,
I'm quite new to Stata and I would like to generate first differences of all my variables, i.e. x(i,t)-x(i,t-1). Additionally, I would like to lag my variables by one period, i.e. x(i,2010) should then be x(i,2011). I hope that makes sense.
Could someone help me out here please?
Thanks a lot !
Have a nice day,
George
Related Posts with First differences and lagged variables in panel data
Merging datasets with multiple observations per company IDHi, Newbie to Stata and trying two merge two datasets (one from Compustat and one from Execucomp) wi…
Trend analysis - ptrendHi Listers, I am interested in assessing the relationship between diabetes diagnosis (yes/no) and a…
Store variables generated in a loop in macroHello, I am using a loop to decode and generate variables: Code: foreach var of varlist S9Q1a_1-S…
Firm/Entity Fixed EffectDear all, I try to include a Firm/Entity fixed effect in my regression model, but I cant specifical…
(Quasi-)Three-dimensional panel data with binary depedent and independent variablesDear Stata-community, I have just started my PhD and am quite new to stata and could use some guidan…
Subscribe to:
Post Comments (Atom)
0 Response to First differences and lagged variables in panel data
Post a Comment