Search found 15 matches
- Sun May 28, 2017 12:26 pm
- Forum: Econometric Discussions
- Topic: Insufficient no of observations
- Replies: 2
- Views: 2661
- Sun May 28, 2017 6:23 am
- Forum: Econometric Discussions
- Topic: Insufficient no of observations
- Replies: 2
- Views: 2661
Insufficient no of observations
Hi. I am estimating a conditional CAPM model where I am using the MRP(-1) up (f1) and down (f0) as conditions. to estimate beta in up, I have r c mrp equation and the conditioning is f1 which is the lag excess market return i.e. MRP(-1) if it is positive, otherwise zero to estimate beta in down, I h...
- Sat May 20, 2017 5:10 pm
- Forum: Estimation
- Topic: insufficient number of observations
- Replies: 0
- Views: 2941
insufficient number of observations
Hi. I am estimating a conditional CAPM model where I am using the MRP(-1) up (f1) and down (f0) as conditions. to estimate beta in up, I have r c mrp equation and the conditioning is f1 which is the lag excess market return i.e. MRP(-1) if it is positive, otherwise zero to estimate beta in down, I h...
- Tue Oct 25, 2016 3:57 pm
- Forum: Programming
- Topic: Colplace out of range error
- Replies: 2
- Views: 4045
Re: Colplace out of range error
Thanks Gareth. It works fine with step size set to 1. however, when I set the step size to 12, then it gives the message. I am a bit lost as I am new to Eviews programming. Please help me with this. I have attached the sample file above.
- Mon Oct 24, 2016 5:55 pm
- Forum: Programming
- Topic: Colplace out of range error
- Replies: 2
- Views: 4045
Colplace out of range error
I want to estimate the betas for the three stock using rolling regression with window of 36 (months) and step size of 12 (months). I am getting the following error when I run the code. Matrix-Vector is out of range in "Colplace(coefmat1,eq1.@coefs,13)". for !i=1 to 3 !window = 36 !step = 1...
- Mon Oct 24, 2016 2:21 pm
- Forum: Programming
- Topic: mastermat and coefmat error message
- Replies: 2
- Views: 3609
Re: mastermat and coefmat error message
Thanks Gareth. It does calculate the coefficients for the three stocks but if I don't give the row and column address, it only displays the coefficients for the 3rd stock only and shows 0.000 for all the coefficients of stock 1 and stock 2. Is there another short way around it as otherwise I have to...
- Sun Oct 23, 2016 5:02 pm
- Forum: Programming
- Topic: mastermat and coefmat error message
- Replies: 2
- Views: 3609
mastermat and coefmat error message
I have daily observations on stock returns and have the following written the following code. the step size is 250 so I want to get annual betas using five years daily data and am rolling one year(250 days) forward. When I run the code, it is giving me the error: {COEFMAT2 is not defined in matplace...
- Wed Oct 19, 2016 3:14 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
Thanks Gareth. can you please help me do it for the following three stocks. do i have to do this for all the 1200 stocks individually or can I declare it in advance? for !i=1 to 3 !window = 36 !step = 1 !length = @obsrange equation eq1 !nrolls = @round((!length-!window)/!step) matrix(6,!nrolls) mast...
- Tue Oct 18, 2016 3:12 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
Thanks Gareth. Can you please share the code structure for the Master Matrix as my skills are quite limited in creating such a matrix?
- Mon Oct 17, 2016 3:53 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
Dear Gareth, Thanks for your valuable help. I have corrected the model as below and now it is estimating coefficients as required. I need your help with one more thing and that is how can I retrieve estimated coefficients for all the stocks in one group view or can directly store them into one outpu...
- Thu Oct 13, 2016 5:10 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
When I estimate the rolling regression using this code, it only estimates the coefficient at one roll and gives zero values for estimates of the coefficients at the second roll and so on over the different windows for the period. Please help me with the solution to the issue. Also can you please gui...
- Thu Oct 13, 2016 10:46 am
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
I have tried the following code but it is still not working. I have attached a test file with stock returns of 3 stocks and the market risk premium. Can you please help me with making the required corrections to the code? for !i=1 to 3 !window = 36 !step = 1 !length = @obsrange equation eq1 !nrolls ...
- Wed Oct 12, 2016 5:12 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
I tried the following but is only giving me the coefficient estimates for the first company. for !i=1 to 1200 //declaring the series i=1 to 1200, I have named stock returns as SR1 to SR1200 !window = 36 !step = 1 !length = @obsrange equation eq1 // !nrolls = @round((!length-!window)/!step) matrix(2,...
- Wed Oct 12, 2016 8:07 am
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Re: Rolling Beta Estimates
Thanks. for the reply. I am new to Eviews programming and don't know how to use the for loops. Can you please help me with a demo?
- Tue Oct 11, 2016 4:41 pm
- Forum: Programming
- Topic: Rolling Beta Estimates
- Replies: 13
- Views: 11878
Rolling Beta Estimates
Hi, I have to estimate Betas for 1200 companies over 20 years. I know how to estimate rolling beta estimates for a single stock but can I estimate the rolling beta coefficients for all the 1200 stocks in Eviews. I earlier used the below code to estimate rolling betas for individual stocks. !window =...
