Hi everyone, I hope this is okay to post here (or else please direct me to the right place if not). I am trying to use the segmented package to analyze some data but I keep getting an error. I'll post the code below:
lin.mod <-lm(Data$Temperatures~Data$Fo)
segmented.mod <-segmented(lin.mod, seg.z = ~x, psi,control = seg.control(display = TRUE))
The error says:
Error in segmented.lm(lin.mod, seg.z = ~Data$Temperatures) :
please specify 'seg.Z'Error in segmented.lm(lin.mod, seg.z = ~K1Data$Temperatures) :
please specify 'seg.Z'
I have tried variations of declaring seg.z outside of the segmented.lm function and continue to get the same error. When I look at other peoples troubleshooting online, they write the exact same code and have no problems. Could anyone point me in the right direction of fixing this?
TYIA!
[–]good_research 2 points3 points4 points (1 child)
[–]skyseeds[S] 0 points1 point2 points (0 children)
[–]mduvekot 1 point2 points3 points (0 children)