search for: estimatemodel

Displaying 1 result from an estimated 1 matches for "estimatemodel".

2011 Mar 10
1
tryCatch - Continuing for/next loop after error
...oop if an error occurs within the loop. Can somebody point me to material (or share some code) with more extensive examples than the ones in the help/FAQ pages? Do explain my problem in more detail: for (i in 100:1000) { ## do some other stuff dataset<-head(data,i) tryCatch(estimatemodel(dataset)) } My for/next loop reads in data (increasing the dataset by one point at every loop run) and then estimates a model. When the problem is computationally singular, the loop exits. I want to continue the loop and register an "error" estimation value for that step. However whe...