cc_staff
56
edits
(Marked this version for translation) |
m (retrait d'éléments superflus pour la compréhension) |
||
Line 387: | Line 387: | ||
x <- iris[which(iris[,5] != "setosa"), c(1,5)] | x <- iris[which(iris[,5] != "setosa"), c(1,5)] | ||
trials <- 10000 | trials <- 10000 | ||
foreach(icount(trials), .combine=cbind) %dopar% | |||
{ | { | ||
ind <- sample(100, 100, replace=TRUE) | |||
result1 <- glm(x[ind,2]~x[ind,1], family=binomial(logit)) | |||
coefficients(result1) | |||
} | } | ||
<!--T:61--> | <!--T:61--> |