Well,
I try to do some piecewise regression on my data to find eventual breakpoint for each ID and extract this information.
Example: subset of my personal data
ID time y
7G009 0 9
7G009 108,33 13
7G009 185,69 16
7G009 309,22 20
7G009 515,08 21
7G051 0 10
7G051 108,33 14
7G051 185,69 19
7G051 309,22 23
7G051 515,08 25
8S027 0 8
8S027 108,33 13
8S027 185,69 17
8S027 309,22 22
8S027 515,08 23
For that purpose , I used the breakpoints function of package strucchange and dlply , my code is the following :
breakby=dlply(test,.(subject),summarize,break=breakpoints(y~time,h=2))
but I get an error :
Erreur dans breakpoints.formula(nbf ~ cumggd, h = 2) :
minimum segment size must be greater than the number of regressors
Well, if anybody can tell me how deal with it
Thank you in advance.
Sorry for the poor English.