Hi, i am supposed to use basic linear predictive regression model (shown below) to predict if the past return can be used to predict stock return. Data that i have provided is monthly stock price, dividends (12-month moving sums of dividends paid on the S&P 500 index). Array
I have tried executing following commands:
gen return = (100*(Index[_n]-Index[_n-1]+(D12/12))) / Index[_n-1]
gen lagreturn = return [_n-1]
reg return lagreturn
I appreciate all help, as i'm new to statistic analysis. I can also provide more information and data if necessary.
Related Posts with Using past stock return
gen var1=var2, generates some wrong values Code: gen geo3= geo3_bd2001 gives the following values. I wonder what might cause this. Any idea pl…
Why might Clopper Pearson CIs differ in Stata vs SAS output?Hello, I am currently using Stata to replicate an analysis with complex svy data to obtain weighted…
Is there a good way to test whether explanatory power among variables varies across populations?Let's imagine I want to assess whether the explanatory power of daily calories, minutes of exercise,…
miliseconds datetime convertionHi , my dataset has a datetime string like this: Code: clear input str28 activityDateTime "2022-1…
esttab summary stats tableHello, I am using estout package to create my summary stats table. I only want the stats for one v…
Subscribe to:
Post Comments (Atom)
0 Response to Using past stock return
Post a Comment