Displaying 1 result from an estimated 1 matches for "samia".
Did you mean:
samba
2012 Oct 15
2
fit a "threshold" function with nls
I am trying to model a dependent variable as a threshold function of
my independent variable.
What I mean is that I want to fit different intercepts to y following 2
breakpoints, but with fixed slopes.
I am trying to do this with using ifelse statements in the nls function.
Perhaps, this is not an appropriate approach.
I have created a very simple example to illustrate what I am trying to do.