Description Usage Arguments Details Value Author(s) Examples

This function takes multiple mean and sample variance estimates and combines them.

1 | ```
combinevar(xbar = NULL, s_squared = NULL, n = NULL)
``` |

`xbar` |
vector of means |

`s_squared` |
vector of sample variances |

`n` |
vector of number of observations |

If a Monte Carlo simulation is run over 1000 loops and then again over another 1000 loops, one may wish to update the mean and variance from the first 1000 loops with the second set of simulation results.

Vector containing the combined mean and sample variance.

John M. Hoenig, Virginia Institute of Marine Science [email protected]

1 2 3 4 | ```
xbar <- c(5,5)
s<-c(2,4)
n <- c(10,10)
combinevar(xbar,s,n)
``` |

fishmethods documentation built on Nov. 17, 2017, 7:43 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.