[R] boot function

Brunschwig, Hadassa {PDMM~Basel} HADASSA.BRUNSCHWIG at Roche.COM
Fri Aug 22 13:49:48 CEST 2003


Hi all,

I skimmed through the archives and couldnt really find an answer to my question. One thing i dont understand of the description of the function boot() is the second variable for statistics. I have a sample of say 19 subjects out of these, using boot(), i would like to generate say 1000 samples. For these 1000 samples ill calculate an nlme() and ill use these 1000 estimators of a variable to make further calculation. Now what i dont understand is where the index should be set. the nlme() looks like this:

nlme(Concentr~a*(1-exp(Day*(log(0.1,base=exp(1))/exp(logt09))))
                              ,data=data
                              ,fixed=a+logt09~1
                              ,random=a+logt09~1|Subject[ind]
                              ,start=list(fixed=c(a=30,logt09=1)))

My idea was to put the index ( second variable of the statistcs function) in the subject as i want to generate different samples of subjects. I get the error that the vector ind was not found. I would be happy for any help concerning this problem.

Thanks a lot

Dassy




More information about the R-help mailing list