Hi everyone,
I would ike to create a new variable whose value equals to the value of another variable in last year. How can I achieve this? For example, I have several companies in the dataset and each company has quarterly earnings data from year 2000-2019. I would like to make Earnings 2019,Q1 of company A= Earnings 2018,Q1 of company A, Earnings 2019,Q2 of company A= Earnings 2018,Q2 of company A and so on.
I am new here, sorry for my poor description. Thank you in advance.
Related Posts with how to use the value of variable A in last year for variable B in this year
Heterogeneous treatment effects with ivregressDear Statalist, I want to calculate treatment heterogeneity in a two-stage-least-square (TSLS) sett…
Effect of a policyHi there, I need to work out the effect of a policy that was introduced in 2007, which raises the to…
ordered logit sorted by a binary variable including weightsi am trying to run an ordered logit model with wealth status (categorical) as dependent variable plu…
Missing Standard ErrorsHi Everyone, I am doing a Poisson regression (ppmlhdfe) with a specification using the Zipcode-spec…
Special character in Variable labels (German "ä", "ö", "ü", ...)I'am importing a ".dta dataset created by another Software (maybe SAS) and everything workes fine, a…
Subscribe to:
Post Comments (Atom)
0 Response to how to use the value of variable A in last year for variable B in this year
Post a Comment