Hi All, I have annual data on the sales revenue of firms. I have the year variable as follows: year = 2008, 2009, 2010, 2015, 2016, 2017. I want to take lead of the sales variable by using the command sales[_n+1]. The problem is the gap in my yearly data, i.e., between 2010 and 2015. Can you please help me with how can I take lead of my sales variable in this data set? I would appreciate your reply.
Related Posts with Lead variable in unbalanced panel data
Generating a new var using loopsHi there, My dataset includes pair variables with the same suffix. For example, as shown in the belo…
How to estimates multiple-fixed effects in panel data with severe million observations?Hello, Statalisters! I have a panel data set and I want to estimates, at first separately, by fixed…
sample size using sample error formula in STATAHi All, I want to know the STATA command to calculate sample size using sample error formula. n=[(z_…
Why is my panel unbalanced?Hi, can someone help me figure out why my panel is unbalanced? Array I have every month, so no gaps…
Leads and lags in a DID: "time variable not set" errorHi everyone, I am trying to run a DID where I have an interaction variable that I would like to see…
Subscribe to:
Post Comments (Atom)
0 Response to Lead variable in unbalanced panel data
Post a Comment