Displaying 1 result from an estimated 1 matches for "pavludata".
2012 Jan 17
4
breakpoints and nonlinear regression
...s. There is a package called strucchange that seems helpful,
but I am thoroughly confused.
'breakpoints' is used to calculate the number of breaks in the data for
linear regressions. I have the following in my script:
bp.pavlu <- breakpoints(Na ~ f(yield, a, b), h=0.15, breaks=3,
data=pavludata)
plot(bp.pavlu)
breakpoints(bp.pavlu)
But I am confused as to how to graph the piecewise functions that make up
the curve. I am not even sure if I am using breakpoints correctly. Do I just
give it a linear relationhip (Na ~ yield), instead of what I have?
Is there an easier way to calculate the c...