Segmented function in R?
Could someone please explain what psi and npsi are?
segmented(obj, seg.Z, psi, npsi, fixed.psi=NULL, control = seg.control(),
model = TRUE, keep.class=FALSE, ...)
If obj is the linear model
seg.z
is ~X
what is psi
and npsi
?
Also, if we only include: obj
, seg.z
and npsi
. Would that be sufficient to estimate the breakpoints?
Topic rstudio linear-regression time-series r
Category Data Science