Nothing
## File Name: mice_imputation_pls_draw_bootstrap_sample.R
## File Version: 0.04
mice_imputation_pls_draw_bootstrap_sample <- function(ry, imputationWeights, use_boot)
{
if (use_boot){
ind <- which(ry)
n <- sum(ry)
vals <- sample(ind, replace=TRUE)
t1 <- table(vals)
imputationWeights <- rep(0,length(ry))
imputationWeights[as.numeric(names(t1))] <- t1
}
return(imputationWeights)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.