expt.mse {clttools} | R Documentation |
Mean square error of simulated experiments
expt.mse(x, n, times, prob = NULL)
x |
vector, possible outcomes in one trial of experiment |
n |
number of trials |
times |
number of simulations |
prob |
probability assigned to each possible outcome |
The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.
Mean square error of simulated experiments
expt.mse(x = c(1:3), n = 4, times = 100) expt.mse(c(0.1, 4, 2), 3, times = 50, prob = c(0.3, 0.5, 0.2))