I have a series of 31 portfolio returns and I have tried to estimate the model using the OLS programme below. I created a group for the dependent variables as well as the independent variables.
'matrix to hold results
matrix(deps.@count,regs.@count)coefs
matrix(deps.@count,regs.@count)tstats
matrix c(i)
'declare equation object to be used in loop
equation e1
'now do estimations
for !i = 1 to deps.@count
e1.ls(n)deps(!i) c regs
rowplace(coefs,@transpose(e1.@coefs),!i)
rowplace(tstats,@transpose(e1.@tstats),!i)
next
However I want to add the p-values of the regression coefficients, correleogram(Q stat and Qstat sq at lag 7 and 21 only) Jarque Bera statistics with skewness and kurtosis, LM for serial on correlation, Durbin Watson, ARCH test in addition to the usual regression parameters such as Adjusted R-squared, F stat etc and transfer them into a matrix.
I have tried to do this but I'm not getting good results. I'm quite new to eviews programming and would appreciate suggestions on how to improve this model.
Many thanks in advance.
MULTIPLE REGRESSION
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: MULTIPLE REGRESSION
You'll have to freeze the stats view of the equation into a table, then extract the numbers you want from that table:
http://forums.eviews.com/viewtopic.php?f=5&t=18
http://forums.eviews.com/viewtopic.php?f=5&t=18
Who is online
Users browsing this forum: No registered users and 2 guests
