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
Kurtosis of three values always equals 1.5Dear Statalist, I got stuck with a surprising issue today when analyzing a dataset. I wanted to com…
Generating new variable based on the maximum value of a group of variables by countryDear all, I am currently working with a country-level religion adherence dataset which looks as fol…
Stata vs. SAS Differences in Repeated Measures AnovaI have uncovered an interesting issue, and am curious if anybody has an explanation for what I am se…
Combine two datasets and estimate values in relation to datesHello, I am doing an event study and posted a question a few days ago, and was able to solve the pr…
Reasons for inconsistent estimator in xtbond and xtdpdsysHi, I made xtabond and xtdpdsys estimations, but in each case the parameter of lag dependent variab…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating some formula in stata
Post a Comment