I am trying to link the volume sold on a service to the price of it. However, the timing differs as the service gets paid months in advance. Consequently, a lag is required.
However, as my data on volume starts on Januar 2005 (first row), I need price data from 2004 (e.g. October 2004 for price and January 2005 for volume in case of a 3 months time lag).
I am thinking about creating a new variable (call it 3mLag or so), where I simply move the pricing data by 3 lines (copy paste) while putting in the missing data for 2004.
Is there probably a faster way that may help as my procedure is only simple in case of a small number of lags to be implemented?
Related Posts with Efficient lags? Is copy and paste better?
Time DummyWhat is the command to test the before and after effect of a phenomenon, example price rise . The ye…
6 groups in one graphHello everyone, I want to have a graph with 6 groups in it. I am able to produce a graph with 6 sm…
How do I get the direct, indirect, and total marginal effects from a probit model with spatial lags?I have searched for Stata commands or routines for spatial probit regression but I could not find on…
dbs: Stata command for computing double bootstrap confidence intervalsDear all, I am happy to announce a new Stata command, dbs, which allows the computation of double bo…
return list in "ineqdeco" command (user-wrriten)Hi, I am suffering from a problem. I want get the results when I run "ineqdeco" command, but I can't…
Subscribe to:
Post Comments (Atom)
0 Response to Efficient lags? Is copy and paste better?
Post a Comment