mysummarise <- function(condition, results, fixed_objects = NULL, parameters_list = NULL){
#convert to matrix for convenience (if helpful)
cell_results <- do.call(rbind, results)
# silly test for bias and RMSE of a random number from 0
pop_value <- 0
bias.random_number <- bias(sapply(parameters_list, function(x) x$random_number), pop_value)
RMSE.random_number <- RMSE(sapply(parameters_list, function(x) x$random_number), pop_value)
#find results of interest here (alpha < .1, .05, .01)
nms <- c('welch', 'independent')
lessthan.05 <- EDR(results[,nms], alpha = .05)
# return the results that will be appended to the design input
ret <- c(bias.random_number=bias.random_number,
RMSE.random_number=RMSE.random_number,
lessthan.05=lessthan.05)
return(ret)
}
Run the code above in your browser using DataLab