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.
Spell-type data for Cox regressionHello, dear users of the Stata program. Now I'm conducting a reserach on duration of unemployment. I…
Three-level mix-effect model for ordered logistic regression in Stata- meologit regressionDear all, I am currently working with a cluster data collected from 3229 respondents in 40 counties…
Predictions with and without BLUP after melogitI am attempting to calculate predictions after a melogit model with and without best linear unbiased…
drop all zero variablesHello, I have created dummy variables for industries, resulting in 35 dummies. However, I deleteted…
Replacing missing values in a panel dataDear All, hope you are all safe and in good health. Kindly I have balanced panel data with missing…
Subscribe to:
Post Comments (Atom)
0 Response to Create change variable for timeseries data.
Post a Comment