Skip to content
Prev 43552 / 398506 Next

Robust nonlinear regression - sin(x)/x?

A small correction to my previous email:
You actually specify the following call to lm:

y <- sin(x)/x
lm(z ~ y - 1)

to make sure that the intercept is not estimated.

Ravi.

----- Original Message -----
From: Ravi Varadhan <rvaradha at jhsph.edu>
Date: Monday, February 2, 2004 2:46 pm
Subject: Re: [R] Robust nonlinear regression - sin(x)/x?