[R] Ignoring Errors in Simulations

2003-11-05 Thread Ken Kelley
Hello all. I'm doing a simulation study and every so often I get an error that stops the simulation. I would like to ignore the errors *and* identify the particular iterations where they occurred. I have tried: options(error = expression(NULL)) which I thought would ignore the error, but the

Re: [R] Ignoring Errors in Simulations

2003-11-05 Thread Thomas W Blackwell
Ken - Either test each simulated data set explicitly for the condition which causes factanal() to fail (perhaps rank deficiency ?), or else use try(). Which is quicker, using try() or restarting your simulation from the beginning each time there's a failure ? - tom blackwell - u michigan

Re: [R] Ignoring Errors in Simulations

2003-11-05 Thread Sean O'Riordain
?try Ken Kelley wrote: Hello all. I'm doing a simulation study and every so often I get an error that stops the simulation. I would like to ignore the errors *and* identify the particular iterations where they occurred. I have tried: options(error = expression(NULL)) which I thought would

Re: [R] Ignoring Errors in Simulations

2003-11-05 Thread Prof Brian Ripley
On Wed, 5 Nov 2003, Ken Kelley wrote: I'm doing a simulation study and every so often I get an error that stops the simulation. I would like to ignore the errors *and* identify the particular iterations where they occurred. I have tried: options(error = expression(NULL)) which I