Skip to content
Prev 95401 / 398500 Next

macro facility in R

----- Original Message ----- 
From: "Gabor Grothendieck" <ggrothendieck at gmail.com>
To: "John Sorkin" <jsorkin at grecc.umaryland.edu>
Cc: <r-help at stat.math.ethz.ch>
Sent: Monday, July 03, 2006 3:01 PM
Subject: Re: [R] macro facility in R
In case of lm(), this could also be written as:

y <- mat[, c(1, 3, 5)] - mat[, c(2, 4, 6)]
x <- mat[, 7:9]
lm(y ~ x)


Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm