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
Dealing with Product wise and Year wise firm dataI am working on a data that consists the following variables - firms, years and the product codes of…
From SAS to Stata: sampling weight for nonlinear models (menl)?Hello all, I am trying to replicate code from SAS to Stata, and I am also struggling with specifyin…
Isolating highest value of a variable using collapse command I am working with a dataset of national election data from 2020. It includes the total votes receiv…
Create several histograms same pictureHello, I would like to have several histograms in the same picture with the answers (inapplicable, …
tostring does not return correct valuesDear Statalisters, I've imported a large .txt file to Stata using import delimited. The file has a …
Subscribe to:
Post Comments (Atom)
0 Response to Using past stock return
Post a Comment