Hey guys,
I am currently a final year student and i am writing my Economics dissertation on Oil prices. I am trying to mathematically create the command for the variable (Net Oil price increase) shown below. OPt is the current oil price variable and OPt-1...OPt-6 is it's lagged values. Your help would be much appreciated!
𝑁𝑂𝑃𝐼𝑡 = max{0, 𝑜𝑝𝑡 − max{𝑜𝑝𝑡−1, 𝑜𝑝𝑡−2, 𝑜𝑝𝑡−3, 𝑜𝑝𝑡−4, 𝑜𝑝𝑡−5, 𝑜𝑝𝑡−6}
Related Posts with Help with creating a variable with lagged values
Issue about xtpoisson with fixed effects and interpreting interaction effectHi Statalisters, When I use count data model to analyze my panel data with fixed effects, like -xtp…
match email across multiple datasetsHi, I have three datasets with master data (userid, names, email addresses, salary etc) data1 (emai…
Fleiss kappa coefficient and Kendall coefficientGood morning. How could you calculate Fleiss's Kappa coefficient and Kendall's correlation coefficie…
Identify values that occur only onceHi, Hopefully a simple question for you. I have a large data set on transactions, and I need to ide…
Variable labelling using loopHi, I am dealing with commodity-level price data. I have price data of around 800 commodities. Commo…
Subscribe to:
Post Comments (Atom)
0 Response to Help with creating a variable with lagged values
Post a Comment