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
Unconditional cross-nested 4-level modelDear all, I would like to replicate a paper (https://onlinelibrary.wiley.com/doi/10.1002/smj.3057) …
By ID_number, keep registry-based (baseline=0) test dates obtained 1 year after original (baseline=1) study’s test dateReally need help! With the expert guidance of a statistician, I merged (using the append command) a …
Difference in the estimate between subsample and interaction modelHi all This question might be stupid but I am really curious. Suppose I want to run the following …
ARDL modelHow to estimate a ARDL model with interaction variables ? First, i used the PCA method to generate t…
Dropping observations based on a list of IDHello, Is there a way to drop observations using a list of IDs ? I have a dataset and there are sev…
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