Re: [R] Regression with many independent variables

2011-03-03 Thread Matthew Douglas
gt; convert that to a formula using the as.formula function. > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original Message- >> From: Matthew Douglas [mailto:mat

Re: [R] Regression with many independent variables

2011-03-03 Thread Matthew Douglas
> are 0/1 then use solve.  A lot depends on what you are doing and what > questions you are trying to answer. > > -- > Gregory (Greg) L. Snow Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > >> -Original M

Re: [R] Regression with many independent variables

2011-03-01 Thread Matthew Douglas
hcare > greg.s...@imail.org > 801.408.8111 > > >> -----Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- >> project.org] On Behalf Of Matthew Douglas >> Sent: Monday, February 28, 2011 1:32 PM >> To: r-help@r-project.org &g

[R] Regression with many independent variables

2011-02-28 Thread Matthew Douglas
Hi, I am trying use lm() on some data, the code works fine but I would like to use a more efficient way to do this. The data looks like this (the data is very sparse with a few 1s, -1s and the rest 0s): > head(adj0708) MARGIN Poss P235 P247 P703 P218 P430 P489 P83 P307 P337 1 64.2857