Re: [R] Model formula question

2006-12-15 Thread Turner, Heather
: www.warwick.ac.uk/go/heatherturner From: Ronaldo Prati [mailto:[EMAIL PROTECTED] Sent: Thu 14/12/2006 13:41 To: r-help@stat.math.ethz.ch Subject: [R] Model formula question Hi all, I'm not familiar with R programming and I'm trying to reproduce a result from

Re: [R] Model formula question

2006-12-15 Thread Turner, Heather
CV4 7AL Tel: 024 76575870 Fax: 024 76524532 Url: www.warwick.ac.uk/go/heatherturner -Original Message- From: Ronaldo Prati [mailto:[EMAIL PROTECTED] Sent: Thu 14/12/2006 13:41 To: r-help@stat.math.ethz.ch Subject: [R] Model formula question Hi all, I'm not familiar with R programming

[R] Model formula question

2006-12-14 Thread Ronaldo Prati
Hi all, I'm not familiar with R programming and I'm trying to reproduce a result from a paper. Basically, I have a dataset which I would like to model in terms of successive increments, i.e. (y denote empirical values of y) y_1 = y1, y_2 = y1 + delta1, y_3 = y1 + delta1 + delta2. ... y_m =

[R] Model formula question

2006-12-14 Thread Ronaldo Prati
Hi all, I'm not familiar with R programming and I'm trying to reproduce a result from a paper. Basically, I have a dataset which I would like to model in terms of successive increments, i.e. (y denote empirical values of y) y_1 = y1, y_2 = y1 + delta1, y_3 = y1 + delta1 + delta2. ... y_m =

[R] Model formula

2006-12-14 Thread Ronaldo Prati
Hi there, I've sent this e-mail to the list twice but didn't get it back from the list. Have it reach list members? cheers, Ronaldo -- Forwarded message -- From: Ronaldo Prati [EMAIL PROTECTED] Date: 14/12/2006 11:59 Subject: Model formula question To: r-help@stat.math.ethz.ch

Re: [R] : Model formula question

2006-02-01 Thread David Firth
On Wednesday 01 February 2006 02:37, maneesh deshpande wrote: Hi, I have a data set with a continuous predictor X, a factor A and a continuous dependent variable Y. I am trying to build a linear model of the form: Y = (b0 + b1*X1)*B(A) where B(A) is a constant for each level of the

[R] : Model formula question

2006-01-31 Thread maneesh deshpande
Hi, I have a data set with a continuous predictor X, a factor A and a continuous dependent variable Y. I am trying to build a linear model of the form: Y = (b0 + b1*X1)*B(A) where B(A) is a constant for each level of the factor A. I am not quite sure how to formulate the appropriate model

[R] model formula

2003-11-18 Thread Bill Simpson
I have continuous variables x, y, z. The plot of the data looks like this: y | z=1(o), 2(@), 3(#), 4(*) | |* * * | | |# # # # | | |@@@ @ | | o | o | o | o |o x The correct model

Re: [R] model formula

2003-11-18 Thread Peter Dalgaard
Bill Simpson [EMAIL PROTECTED] writes: I have continuous variables x, y, z. The plot of the data looks like this: y | z=1(o), 2(@), 3(#), 4(*) | |* * * | | |# # # # | | |@@@ @ | | o | o | o |

Re: [R] model formula

2003-11-18 Thread John Fox
Dear Bill, I believe that lm(y ~ z + I((z == 1)*x)) will give you what you want. I hope that this helps, John At 08:40 AM 11/18/2003 -0500, you wrote: I have continuous variables x, y, z. The plot of the data looks like this: y | z=1(o), 2(@), 3(#), 4(*) | |* * * |

Re: [R] model formula

2003-11-18 Thread Bill Simpson
Thanks very much John Peter for your help. Bill __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help