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
re-transformation of logged DV give ridiculous valueDear All, I have a quick question. I am not sure what I did wrong here. After I run ivregress 2sls,…
Saving multiple file names in one .txt or .dat Dear all, I would like to run Monte Carlo simulation in Mplus using 100 data generated from Stata. …
VAR Model Lag Length Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(Dlrgdp Dlo…
Changing date format in Stata graphsHello, I have daily data from jan 2004 to sep 2017 and I want to have on the x-axis the dates showi…
Delimit Propensity Score to obtain a better matchingHello, I have a general doubt about PSM. The analyses of the graph (using teffects psmatch) are muc…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating some formula in stata
Post a Comment