Re: [R] Multiple left hand side variables in a formula

2013-03-02 Thread Frank Harrell
Hi Gabor, This is not for a regression function but for a major update I'm working on for the summary.formula function in the Hmisc package. So I need to handle several data types in the formula. Thanks Frank Gabor Grothendieck wrote >> Gabor Grothendieck wrote >>> On Fri, Mar 1, 2013 at 7:16 P

Re: [R] Multiple left hand side variables in a formula

2013-03-02 Thread Frank Harrell
[1] "log(mpg)" "hp" "mpg" "cyl" >>> [5] "disp" "drat" "wt" "qsec" >>> [9] "vs" "am" "gear" "carb" >>> >>&

Re: [R] Multiple left hand side variables in a formula

2013-03-02 Thread Achim Zeileis
re, TIBCO Software wdunlap tibco.com -----Original Message----- From: r-help-bounces@ [mailto: r-help-bounces@ ] On Behalf Of Frank Harrell Sent: Friday, March 01, 2013 4:17 PM To: r-help@ Subject: [R] Multiple left hand side variables in a formula The lattice package uses s

Re: [R] Multiple left hand side variables in a formula

2013-03-01 Thread Gabor Grothendieck
> Gabor Grothendieck wrote >> On Fri, Mar 1, 2013 at 7:16 PM, Frank Harrell < > >> f.harrell@ > >> > wrote: >>> The lattice package uses special logic to allow for multiple >>> left-hand-side >>> variables in a formula, e.g. y1 + y2 ~ x. Is there an elegant way to do >>> this outside of lattice?

Re: [R] Multiple left hand side variables in a formula

2013-03-01 Thread Frank Harrell
[5] "disp" "drat" "wt" "qsec" > [9] "vs" "am" "gear" "carb" > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > >> -Original Messag

Re: [R] Multiple left hand side variables in a formula

2013-03-01 Thread Frank Harrell
Thanks for your reply Gabor. That doesn't handle a mixture of factor and numeric variables on the left hand side. Frank Gabor Grothendieck wrote > On Fri, Mar 1, 2013 at 7:16 PM, Frank Harrell < > f.harrell@ > > wrote: >> The lattice package uses special logic to allow for multiple >> left-hand

Re: [R] Multiple left hand side variables in a formula

2013-03-01 Thread William Dunlap
wt" "qsec" [9] "vs" "am" "gear" "carb" Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On >

Re: [R] Multiple left hand side variables in a formula

2013-03-01 Thread Gabor Grothendieck
On Fri, Mar 1, 2013 at 7:16 PM, Frank Harrell wrote: > The lattice package uses special logic to allow for multiple left-hand-side > variables in a formula, e.g. y1 + y2 ~ x. Is there an elegant way to do > this outside of lattice? I'm trying to implement a data summarization > function that log

[R] Multiple left hand side variables in a formula

2013-03-01 Thread Frank Harrell
The lattice package uses special logic to allow for multiple left-hand-side variables in a formula, e.g. y1 + y2 ~ x. Is there an elegant way to do this outside of lattice? I'm trying to implement a data summarization function that logically takes multiple dependent variables. The usual invocati