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
Collinearity in event study analysisDear Statalisters, I am having omission of regression coefficients due to collinearity in an event-s…
Analyzing World Bank Dev, IndicatorsI am working on the attached data and new stata user. Can I get commands for the mean, minimum, and …
Generating a variableDear Community, I am using a probit model to analyze the factors that influence the decision of a w…
Exporting a tableI have created using a string variable (called CompanyNameCIQ) and an indicator variable (Verfied, w…
How to create a variable equal to the kurtosis?Hello Statalist community, I am currently struggling to achieve the following: I would like to crea…
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