Displaying 1 result from an estimated 1 matches for "gppdata".
Did you mean:
appdata
2012 May 03
1
Error with the 'segmented' package for R
...wanted to find the brakepoint for the curve, however I get this error mesasge:
Error in 1:ncol(U) : argument of length 0
In addition: Warning message:
In o0$boot.restart <- ris : Coercing LHS to a list
I was using the following code:
library("segmented")
curva<-read.table("gppdata.txt", header=T)
attach(curva)
fit.glm<-glm(gpp~temp, weight=NULL, family=gaussian)
fit.seg<-segmented(fit.glm, seg.Z=~temp, psi=15)
summary(fit.seg)
Is anyone able to help me and direct me for the source of the problem?
Thanks for your help.
Regards,
Szymon