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
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
Contour plot cannot handle missing xHi all, As you can see from my code below, I only want to plot the cells with F statistics higher t…
Comparing two models with different dependent variables after an IV regressionDear Stata users, I have two models with the same independant variables on the same dataset. Model…
Choosing the right modeling technique available in STATADear Stata Experts: I am working on an assignment to predict state policy on a particular issue. Th…
subsetByVIF -- An ado file that selects a subset of covariates constrained by variance inflation factors (VIFs)subsetByVIF selects subsets of the covariates such that each covariate in a given subset has a VIF t…
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