Skip to content

Multiple linear regression

2 messages · Jim Lindsey, Brian Ripley

#
One easy possibility is to fit it as a nonlinear regression:
y=b0+exp(b1)*x1+exp(b2)*x2
  Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Thu, 19 Apr 2001, Jim Lindsey wrote:

            
If it means > 0 and not >= 0, yes, but if 0 would give a better fit
the nonlinear fit will have problems.

For the latter, there is an example using optim in ch08.R in the MASS
package scripts, and another one for a constrained GLM fit.