Find eventual breakpoints on subset of linear regression by ID using the package 'segmented'
===

Well, 

I try to do some piecewise regression on my data to find eventual breakpoint ,
my data are really similar to the data available in the second example of the review named : “AN R PACKAGE TO FIT REGRESSION MODELS WITH BROKEN-LINE RELATIONSHIPS” (http://dssm.unipa.it/vmuggeo/segmentedRnews.pdf )

my point , like i said is to find an eventual breakpoint for each ID.

Example: subset of my pesonal 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
			

 But I have 190 different IDs and I can’t find a way to code easily the explanatory variables as the same in (http://dssm.unipa.it/vmuggeo/segmentedRnews.pdf)
Cf.  -Page 4: 

    > data("plant")
    > attach(plant)
    > X<-model.matrix(~0+group)*time
    > time.KV<-X[,1]
    > time.KW<-X[,2]
    > time.WC<-X[,3]

I tried to use  LmList function like :

    Lmtest=lmList(x~time|ID,data=test)

 
But I don’t find a way to apply the segmented function on Lmtest .
I don’t know if I am in a wrong path ... 

Well, if anybody can tell me how deal with it 

Thank you in advance.

Sorry for the poor English.