[R] use of sequence on ridge regression

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 7 16:59:47 CEST 2008


What do you mean by 'the sequence option'?

The authot of lm.ridge

On Wed, 7 May 2008, Rodrigo Briceño wrote:

> Dear R users. I have a doubt about the use of the sequence option on
> Ridge regression. I'm trying to understand the use of this option when
> variables are highly linear correlated. I'm running a model where the
> variables HtShoes and Ht have high VIF values. My program is written
> below, but I'm not sure about the correct way of using the sequence
> option:
>
> library (faraway)
> data (seatpos)
> attach (seatpos)
> spos.mod <- lm(hipcenter ~ .,seatpos) summary (spos.mod)
> library(MASS)
> lm.ridge(hipcenter ~ .,seatpos)
> plot(lm.ridge(hipcenter ~ .,seatpos, lambda = seq(0,0.1,0.001)))
> select(lm.ridge(hipcenter ~ ., seatpos,lambda = seq(0,0.1,0.001)))
>
> Any advice will be appreaciated. Rodrigo B.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list