Re: [R] fitting model to resampled data

2010-09-29 Thread Henrique Dallazuanna
Try this: growthBoot <- replicate(3, growth[sample(9,12,replace=T),], simplify = FALSE) lapply(growthBoot, nls, formula = Length ~ Linf * (1 - exp(-K * (Age - to))), start = par) On Wed, Sep 29, 2010 at 4:56 PM, Michael Larkin wrote: > I apologize if this comes across as confusing. I will try t

Re: [R] fitting model to resampled data

2010-09-29 Thread Derek Ogle
nrlex.html > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Michael Larkin > Sent: Wednesday, September 29, 2010 2:57 PM > To: r-help@r-project.org > Subject: [R] fitting model to resampled data > > I apologize if

[R] fitting model to resampled data

2010-09-29 Thread Michael Larkin
I apologize if this comes across as confusing. I will try to explain my situation as best I can. I have R bootstrapping my growth data for fish. It's resampling my database of age and length data and then produces several new datasets for me. In this case, it's resampling my data to create