Re: [R] How to Fit a Set of Lines Parametrized by a Number

2011-12-21 Thread Greg Snow
Intermountain Healthcare 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 Lorenzo Isella > Sent: Wednesday, December 21, 2011 8:59 AM > To: r-h...@stat.math.ethz.ch > Subject: [R

[R] How to Fit a Set of Lines Parametrized by a Number

2011-12-21 Thread Lorenzo Isella
Dear All, It is not very difficult, in R, to perform a linear fit y=Ax+B on a single set of data. However, imagine that you have several datasets labelled by a number (real or integer does not matter) K. For each individual dataset, it would make sense to resort to a linear fit, but now A and B bo