Re: [R] "regression" line of 2 independent variables

2010-08-10 Thread David Reiner
, 2010 11:34 AM To: r-help@r-project.org Subject: [R] "regression" line of 2 independent variables Hi, I would like to a draw a scatterplot of x1 and x2 (plot (x1, x2)), and also want to draw a sort of "regression" line across the data points. But x1 and x2 are just 2 independ

[R] "regression" line of 2 independent variables

2010-08-09 Thread array chip
Hi, I would like to a draw a scatterplot of x1 and x2 (plot (x1, x2)), and also want to draw a sort of "regression" line across the data points. But x1 and x2 are just 2 independent variables, so in this case a regression of x1 over x2, or vice versa, is not appropriate per se. What would be an