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.
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.
Comment