Page 3 of 4

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jun 08, 2011 3:26 pm
by EViews Gareth
Try something greater than 1.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jul 06, 2011 2:46 am
by Kavorka
There are different methods of calculating an appropriate optimal lambda in the ridge regression (the original classical approach is by Hoerl and Kennard, 1970, but has been followed by other better approaches). However, in the add-in I did not find any such code so it was assumed that the user would choose lambda in some other way (or calculate it manually).

I would like to apply Ridge regression, but then I need to add some lines where the optimal lambda is estimated, instead of just arbitrarily try different values of lambda. However, then it is necessary that I can access the Ridge-regression add-in algorithm in the syntax (not by clicking the menus).

1. It is possible to call the Ridge regression add-in by some syntax from the programming window?

2. Is it possible to access the original code inside the add-in (e.g. how the ridge is estimated and how the standard errors are calculated etc). Then this add-in could be redeveloped.


Thanks for your help!
/Kavorka

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jul 06, 2011 7:38 am
by EViews Gareth
1. Yep - check the documentation for the add-in (either by manually going to the add-in folder, or by going to the Manage Add-ins menu and clicking on the Docs link for the add-in).

2. Yep - just open up the corresponding add-in files in your add-in directory.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Mon Jul 11, 2011 1:20 pm
by sara
The Ridge add-in does not provide us with any standard errors (I know that it is sometimes questionable to see if something is statistically significantly different from zero when there is bias in the coefficients)
Is is possible to combine the Ridge addin with the addin EqBootstrap (bootstrap standard errors)?
Otherwise, do you have any other suggestions?

If I would use time series data I must use block bootstrap or maybe paired bootstrap which also helpes against heteroskedasticity. I know how EViews can conduct block bootstrap using @resample but is there a way to bootstrap a matrix with e.g. 3 'paired' variables? Are there any examples programs available somewhere?

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Mon Jul 11, 2011 1:37 pm
by EViews Gareth
You would have to modify the original program to add standard errors. There is no @resample equivalent for matrices :(

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Mon Jul 11, 2011 4:38 pm
by sara
If there is no @resample equivalent for matrices do you have any hints on how to bootstrap in pairs?

This pairs bootstrap apprach can be used for:

taking care of heteroskedasticity:
y1(t) = b0 + b1 * x1(t) + e1(t)
where I want to resample pairs of y(t) and x(t), e.g. y(9) together with x(9), y(11) together with x(11) etc.

or equivalently when we have a lagged model, we can adjust for time dependencies:
y2(t) = c0 + c1 * x2(t-1) + e2(t)
where I want to resample pairs of y(t) and x(t-1), e.g. y(6) together with x(5), y(32) together with x(31) etc.

This method is called the pairs (or pairwise) bootstrap because the dependent variable y and the independent variables X are always selected in pairs. Unlike the residual and wild bootstraps, the pairs bootstrap does not condition on X. Instead, each bootstrap sample has a diļ¬€erent X matrix. This method implicitly assumes that each observation is an independent random drawing from a multivariate distribution. It does not require that the error terms be homoskedastic, and it even works for dynamic models if we treat lagged dependent variables like any other element of X.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Mon Jul 18, 2011 2:06 pm
by annasaralindfors
It would be excellent to get some standard errors for the ridge regression. Is it possible to get that? If the eviews staff do not have the time you could give some code or advice on how to create this. Standard errors based on block bootstrapping would work or maybe as suggested above standard errors based on paired bootstrapping.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jul 20, 2011 4:56 am
by annasaralindfors
EViews Gareth wrote:You would have to modify the original program to add standard errors. There is no @resample equivalent for matrices :(


Is there any @resample equivalent for 'groups', or any other way for pairwise resampling? It would be useful with SEs for ridge.

Another suggestion, it would be useful with a compiler for matrix language in EViews. Translating the command, or something like this (X'X+L*I)-1 X'y
to
@inverse( (@transpose(X)*X) + (lambda*@identity({noindepvars})) ) * (@transpose(X)*y)
not exactly the same but you get what I mean.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jul 20, 2011 7:49 am
by EViews Gareth
group.resample

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Wed Jul 27, 2011 9:36 pm
by annasaralindfors
Is it the UNCENTERED variance inflation factor (VIF) that is presented for the ridgereg add-in?

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Thu Jul 28, 2011 7:47 am
by EViews Gareth
Centered.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Tue Aug 02, 2011 6:49 pm
by mjfl
hi,

can i ask can this be used in evoews 7 or how can i do ridge in 7?
theres no documentation. apology.

Ridge (Ridge Regression and Ridge Trace)

Posted: Tue Aug 02, 2011 7:14 pm
by EViews Gareth
You need EViews 7.1 or later.

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Sun Dec 16, 2012 12:21 pm
by assaf
Dear,


could you please advice how to apply ridge regression using pooled data (fixed effect) , it keeps give me (undefined dependant )!!!!

thanks in advance

Re: Ridge (Ridge Regression and Ridge Trace)

Posted: Sun Dec 16, 2012 5:34 pm
by EViews Gareth
The add-in doesn't support pooled data.