[R] getting the output after bootstraping

David Winsemius dwinsemius at comcast.net
Thu Sep 30 23:00:00 CEST 2010



Michael Larkin wrote:
> 
> Thanks to the help of people from this forum I was able to bootstrap my
> data
> and then apply a model to it.  Thanks for all your help.  
> 
> Everything worked out well, but I am having a difficult time getting the
> new
> parameter values.  I bootstrapped the data 300 times and I want to get the
> 300 sets of parameter estimates and plot them in Excel.      
> 
> Here is my code:  
> 
> par<-list(Linf=700, K=0.3, to=-0.1)                            #starting
> values for parameter estimates
> 
> vb<-nls(length~Linf*(1-exp(-K*(age-to))), start=par, data=small)     #von
> Bertalanffy growth mode
> 
> boo<- nlsBoot(vb, niter=300)                                     #This
> bootstraps my data 300 times and applies the growth model
> 
>  
> 
> I can get R to plot the 300 parameter estimates if I do the following
> function: 
> 
> plot(boo)
> 
>  
> 
> However, I have tried different print function options but have not had
> any
> luck getting the 300 parameter estimates.  Any advice would be greatly
> appreciated.  
>  

It's probably as simple as looking at:

vb$t   #  but this is untested in the absence of a reproducible example.

-- 
David.

-- 
View this message in context: http://r.789695.n4.nabble.com/getting-the-output-after-bootstraping-tp2721024p2758846.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list