Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-16 Thread Bonnett, Laura
be fit. At bootstrap sample number 10, the variable c11 is considered singular by model cox1. Thanks, Laura -Original Message- From: Ken [mailto:vicvoncas...@gmail.com] Sent: 15 September 2011 21:43 To: Bonnett, Laura Cc: Steve Lianoglou; r-help@r-project.org Subject: Re: [R] Where to

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-16 Thread Jan van der Laan
t: Re: [R] Where to put tryCatch or similar in a very big for loop What type of singularity exactly, if you're working with counts is it a special case? If using a Monte Carlo generation scheme, there are various workarounds such as while(sum(vec)!=0) {sample} for example. More in

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-16 Thread Bonnett, Laura
model cox1. Thanks, Laura -Original Message- From: Ken [mailto:vicvoncas...@gmail.com] Sent: 15 September 2011 21:43 To: Bonnett, Laura Cc: Steve Lianoglou; r-help@r-project.org Subject: Re: [R] Where to put tryCatch or similar in a very big for loop What type of singularity exactly, if

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-15 Thread Ken
y contrast, I need to be able to specify which > starting seed I am using). > > Thanks, > Laura > > -Original Message- > From: Steve Lianoglou [mailto:mailinglist.honey...@gmail.com] > Sent: 15 September 2011 16:17 > To: Bonnett, Laura > Cc: r-help@r-project

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-15 Thread Bonnett, Laura
--Original Message- From: Steve Lianoglou [mailto:mailinglist.honey...@gmail.com] Sent: 15 September 2011 16:17 To: Bonnett, Laura Cc: r-help@r-project.org Subject: Re: [R] Where to put tryCatch or similar in a very big for loop Hi Laura, On Thu, Sep 15, 2011 at 10:53 AM, Bonnett, Laura wro

Re: [R] Where to put tryCatch or similar in a very big for loop

2011-09-15 Thread Steve Lianoglou
Hi Laura, On Thu, Sep 15, 2011 at 10:53 AM, Bonnett, Laura wrote: > Dear all, > > I am running a simulation study to test variable imputation methods for Cox > models using R 2.9.0 and Windows XP.  The code I have written (which is > rather long) works (if I set nsim = 9) with the following sta

[R] Where to put tryCatch or similar in a very big for loop

2011-09-15 Thread Bonnett, Laura
Dear all, I am running a simulation study to test variable imputation methods for Cox models using R 2.9.0 and Windows XP. The code I have written (which is rather long) works (if I set nsim = 9) with the following starting values. >bootrs(nsim=9,lendevdat=1500,lenvaldat=855,ac1=-0.19122,bc1=-