Re: [R] subset of factors in a regression

2013-07-02 Thread David Winsemius
On Jul 1, 2013, at 9:39 PM, Ben Bolker wrote: > Philip A. Viton osu.edu> writes: > >> suppose "state" is a variable in a dataframe containing abbreviations >> of the US states, as a factor. What I'd like to do is to include >> dummy variables for a few of the states, (say, CA and MA) among th

Re: [R] subset of factors in a regression

2013-07-01 Thread Ben Bolker
Philip A. Viton osu.edu> writes: > suppose "state" is a variable in a dataframe containing abbreviations > of the US states, as a factor. What I'd like to do is to include > dummy variables for a few of the states, (say, CA and MA) among the > independent variables in my regression formula. (T

[R] subset of factors in a regression

2013-07-01 Thread Philip A. Viton
suppose "state" is a variable in a dataframe containing abbreviations of the US states, as a factor. What I'd like to do is to include dummy variables for a few of the states, (say, CA and MA) among the independent variables in my regression formula. (This would be the equivalent of, creating