Dear Stata community,
I hope you are all doing well.
I've cleaned all my data using Stata and then have the right variables .
But then I was not sure how I can calculate these two formula with these variables I created.
Here 'm' means months.
So I tried some for loops , but lacked skills to express these successfully.
Could anyone please give me some hints on how I shold approach these?
month price FutRet1
1992m1 19.02 203.70
1992m2 19.16 199.02
1992m3 18.93 202.22
1992m4 20.29 205.02
.........................................
.
.
.........................................
Array Array
Related Posts with Calculating some formula in stata
Reference period in new DID estimatorsHello all! I am running a few checks using the new heterogeneity-robust diff-in-diff estimators, spe…
Creating Graphs with Regression OutputI am attempting to determine whether hours worked and wages have changed overtime differently for di…
Mediation Analysis - Stata sem and medsem commands with fixed effects modelsHello everyone, I am trying to perform a mediation analysis, in which the variables of concern are…
Matching data over time?Hello, I have a sample from the Current Population Survey (CPS). My data is monthly from 2015-prese…
Portfolio constructionHello, I have data of individual investors trading behavior. Below you see an abstract of my data. …
Subscribe to:
Post Comments (Atom)
0 Response to Calculating some formula in stata
Post a Comment