Skip to content
Prev 369902 / 398503 Next

R_using non linear regression with constraints

I took another look at the problem.

Essentially there isn't enough information in the data to estimate the parameters. What there is
doesn't have the right shape for the model.

You can see this by plotting the data -- essentially a straight line.

Get the slope as follows:

    rr <- mean(mydata$y/mydata$x, na.rm=TRUE)

    rr

    mydata$yx <- mydata$y - rr*mydata$x

    with(mydata, plot(x, yx))

Shows that the curve is bending the wrong way for the model.

More data is needed, especially at larger values of x.

JN
On 2017-06-18 06:23 PM, Jeff Newmiller wrote: