Re: [R] Factor variables with GAM models

2010-04-14 Thread Gavin Simpson
gt; > > From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf > Of Noah Silverman [n...@smartmediacorp.com] > Sent: March 19, 2010 12:54 PM > To: r-help@r-project.org > Subject: [R] Factor variables with GAM models

Re: [R] Factor variables with GAM models

2010-03-22 Thread Simon Wood
It doesn't usually make much sense to *smooth* over a factor variable (in the cases where it does you should treat the factor as a random effect), but there is no problem in including factor variables in a GAM. `gam' lets you mix factor and continuous variables in a bunch of ways. Suppose that `

Re: [R] Factor variables with GAM models

2010-03-20 Thread Corrado
2:54 PM To: r-help@r-project.org Subject: [R] Factor variables with GAM models I'm just starting to learn about GAM models. When using the lm function in R, any factors I have in my data set are automatically converted into a series of binomial variables. For example, if I have a data.fr

Re: [R] Factor variables with GAM models

2010-03-19 Thread Noah Silverman
rg [r-help-boun...@r-project.org] On Behalf Of Noah Silverman [n...@smartmediacorp.com] Sent: March 19, 2010 12:54 PM To: r-help@r-project.org Subject: [R] Factor variables with GAM models I'm just starting to learn about GAM models. When using the lm function in R, any factors I have in my d

Re: [R] Factor variables with GAM models

2010-03-19 Thread Steven McKinney
___ From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of Noah Silverman [n...@smartmediacorp.com] Sent: March 19, 2010 12:54 PM To: r-help@r-project.org Subject: [R] Factor variables with GAM models I'm just starting to learn about GAM models. When using the l

[R] Factor variables with GAM models

2010-03-19 Thread Noah Silverman
I'm just starting to learn about GAM models. When using the lm function in R, any factors I have in my data set are automatically converted into a series of binomial variables. For example, if I have a data.frame with a column named color and values "red", "green", "blue". The lm function a