expt.mse {clttools} | R Documentation |

## Mean square error of simulated experiments

### Description

Mean square error of simulated experiments

### Usage

```
expt.mse(x, n, times, prob = NULL)
```

### Arguments

`x` |
vector, possible outcomes in one trial of experiment |

`n` |
number of trials |

`times` |
number of simulations |

`prob` |
probability assigned to each possible outcome |

### Details

The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.

### Value

Mean square error of simulated experiments

### Examples

```
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))
```

[Package

*clttools*version 1.3 Index]