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
Four period aggregated returnDear Statalist forum, I have quarterly data (Year_Quarter) from 1965 until 2020 and I want to gener…
not sorted error for predict te, teI successfully ran xtfrontier for lagged and other variables in my analysis. I am using a large pane…
Hansen-J-Test InterpretationDear Statalists I am actually doing a IV regression with one single endogenous regressior (penetrat…
How to calculate the number of posts and different categories for a certain user before time t?Hello, I encounter a question when building models in Stata. Data example: Code: * Example genera…
Calculating weekly return volatility from weekly return dataSir What could be code for calculating weekly return volatility(Volatility) from weekly return data(…
Subscribe to:
Post Comments (Atom)
0 Response to Using past stock return
Post a Comment