Hello,
Im working on a dataset and want to expand my dataset backwards for 2 months extra. The dataex I added shows first the GVKEY (company ID), then the date and then the variabele (DLCQ).
For example: if the data is june 2009 I want to add May and April to the date variabele and take over the value of DLCQ in these months (25.353 in this case)
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input str6 gvkey long date double dlcq
"001004" 14669 25.353
"001004" 14761 26.314
"001004" 14853 48.151
"001004" 14944 50.437
"001004" 15034 49.665
"001004" 15126 13.652
"001004" 15218 65.396
"001004" 15309 71.162
"001004" 15399 20.89
Thank you!
Related Posts with Expanding backwards
fracglm betareg fractional data mixed multilevel modelsHi All, Does anyone know of a method to do a regression on fractional data but in a multilevel sett…
Descriptive StatisticsHello together, I am curious if you have any concerns regarding my Descriptive Statistics? In my wo…
How to test that melogit (mixed effects logit) fits better than fixed effects/ random effects?Hi Statalist, I used hausman test to my panel data to see whether a fe/re fits better. The result is…
Panel data instrumental variable analysisHello, I am trying to conduct a panel data IV analysis using the xtivreg command in Stata 15.1. I …
Estimates post: matrix has missing values! for ivreg2Hi, guys! I received an error message "estimates post: matrix has missing values" when i'm using iv…
Subscribe to:
Post Comments (Atom)
0 Response to Expanding backwards
Post a Comment