Re: [R] Contrasts in Penalized Package

2011-05-20 Thread Bill.Venables
ith a function of your own, for example. Bill Venables. From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of Lars Bishop [lars...@gmail.com] Sent: 20 May 2011 20:52 To: r-help@r-project.org Subject: [R] Contrasts in Pena

[R] Contrasts in Penalized Package

2011-05-20 Thread Lars Bishop
Hi, The "penalized" documentation says that "Unordered factors are turned into as many dummy variables as the factor has levels". This is done by a function in the package called contr.none. I'm trying to figure out how exactly is a model matrix created with this contrast option when the user call