Functions and tips for use in the R statistical environment.
for (i in 1:1000){fit<-try(lm(y~x,dataset))results<- ifelse(class(fit)=="try-error", NA, fit$coefficients)}
Post a Comment
No comments:
Post a Comment