Displaying 1 result from an estimated 1 matches for "lnfreq".
Did you mean:
nfreq
2008 Oct 03
1
NA's in segmented
I am trying to fit a very simple broken stick model using the package
"segmented" but I have hit a roadblock.
> str(data)
'data.frame': 18 obs. of 2 variables:
$ Bin : num 0.25 0.75 1.25 1.75 2.25 2.75 3.25 3.75 4.25 4.75 ...
$ LnFREQ: num 5.06 4.23 3.50 3.47 2.83 ...
I fit the lm easily:
> fit.lm<-lm(LnFREQ~Bin, data=id07)
But I keep getting an error message:
> fit.seg<-segmented(fit.glm, seg.Z=~Bin, psi=6)
Error in cbind(XREG, U, V) :
number of rows of matrices must match (see arg 2)
I think the problem is...