Guest User

Untitled

a guest
Jan 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. bma2 <- bicreg(
  2. x.quest,
  3. y.quest,
  4. wt = rep(1, length(y.quest)),
  5. strict = FALSE,
  6. OR = 20,
  7. maxCol = 31,
  8. drop.factor.levels = FALSE,
  9. nbest = 70
  10. )
  11.  
  12. no_cores <- detectCores() - 1
  13. cl <- makeCluster(no_cores)
  14.  
  15. bma_resp <- function(i) {
  16. bma1 <- bicreg(
  17. x.quest,
  18. y.quest,
  19. wt = rep(1, length(y.quest)),
  20. strict = FALSE,
  21. OR = 20,
  22. maxCol = 31,
  23. drop.factor.levels = FALSE,
  24. nbest = 70)
  25. return(bma1)
  26. }
  27.  
  28. final <- mclapply(1, bma_resp)
Add Comment
Please, Sign In to add comment