Re: [R] Earth (MARS) package with categorical predictors

2013-11-11 Thread Chris Wilkinson
fy pkg for predict. In the example you gave, does the data include a categorical? Chris -Original Message- From: Stephen Milborrow [mailto:mi...@sonic.net] Sent: Monday, November 11, 2013 7:21 AM To: kins...@verizon.net Subject: [R] Earth (MARS) package with categorical predictors See if

[R] Earth (MARS) package with categorical predictors

2013-11-10 Thread Chris Wilkinson
It appears to be legitimate to include multi-level categorical and continuous variables in defining the model for earth (e.g. y ~ cat + cont1 + cont2) but is it also then possible use categoricals in the predict method using the earth result? Chris _

[R] Earth (MARS) package with categorical predictors

2013-11-07 Thread Chris Wilkinson
It appears to be legitimate to include multi-level categorical and continuous variables in defining the model for earth (e.g. y ~ cat + cont1 + cont2) but is it also then possible use categoricals in the predict method using the earth result? I tried but it returns an error which is not very inf