[R] intercept in multiple regression

Irene Mantzouni ima at difres.dk
Tue Nov 20 16:39:10 CET 2007


Hi all!
 
Is it possible to model a multiple regression in which the response becomes zero when one of the two covariates is zero?  
lm(y~ x1+x2) and y=0 if x1=0. 
However, when x1=0, y=x2+1(intercept). 
Does this mean I cannot have a second covariate and intercept or should I eliminate only the intercept?
 
thank you!



More information about the R-help mailing list