[R] : Model formula question

From: maneesh deshpande <dmaneesh_at_hotmail.com>
Date: Wed 01 Feb 2006 - 13:37:13 EST


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 formula. If I write:

Y ~ ( 1 + X)/A

, I get estimates for as many constants and slopes as the number of levels of A.
What I really need is an overall multiplicative constant which depends on the factor A.

Thanks in advance,

Maneesh



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Feb 01 13:44:46 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:16 EST