Hi,
my problem is twofold. I downloaded a database containing gvkey, sic code, year (1995 - 2005), year-end date, and 13 variables, for about 3000 US companies. This information is organized in columns, with the first company taking the first 11 rows (years), directly followed by the next company. I have to create new variables that represent year-to-year change. I was unable to find the syntax for this command, although I assume this to be quite straightforward (like in Excel). The second problem is the necessary leap from one company to the next. How do I tell STATA to end the subtraction at the end of a certain company (year 2005), to continue with the next. Is this even possible?
Related Posts with Create change variable for timeseries data.
Oaxaca-Blinder command. Statistical significance of the components.Hi everyone, I am a current user of Oaxaca command and I don't know how Stata calculates (with which…
Distribution Dependent variableHello, does someone know how to determine the distribution of the dependent variable? I am not sure…
Can I extract few letters from a string variable based on a conditional is another string variable?Dear Statalists, I have a dataset including six variables: ID PersonName ExcelPersonID CompanyName …
Diagnostics for mixed effects logistic regression and interpretation of ICC.Hello, I am looking at the association between certain protective/risk factors and suicide in a sam…
matrix divisionHi, I have two variables for which I use the sum command to aggregate the values, so I end-up with …
Subscribe to:
Post Comments (Atom)
0 Response to Create change variable for timeseries data.
Post a Comment