i have panel time series.
I want to create a variable that is the difference between the last non-missing value and the first non-missing value.so in this case for Austria, the value would be -1 - 0 = "-1".
I want to know the simplest code. I have been creating a variable that is the last value, and another variable that's the first value, and blah blah but i need to do this for so many variables, so i would that'd be a one liner command or something?
thank you!
Related Posts with creating a variable that takes a value of the difference of the last non-missing value and the first non-missing value in panel data
Non-normal distribution of latent variable in structural equations modelling - transformation?I have a simple path model with several latent variables that are ostensibly well enough indicated b…
Constrained optimization in StataDear Stata uses, I am having a constant optimization problem to solve in Stata I am having three var…
Effective Reproductive NumberHello! Is there a way to calculate Effective Reproductive Number (Rt) in STATA? Thank you very muc…
Tobit with vce(robust) or notHi, When I run tobit model specifying vce(robust), it does F test to test the hypothesis that the co…
Time DummiesHello! Quick question regarding time dummies. I have data from 4 quarters of the Labour Force Surv…
Subscribe to:
Post Comments (Atom)
0 Response to creating a variable that takes a value of the difference of the last non-missing value and the first non-missing value in panel data
Post a Comment