Description Usage Arguments Details

Calculate stratified means, variances and confidence intervals across groups

1 2 3 4 5 6 7 |

`data` |
Expects data.table with all grouping variables in stacked format (must include strat_area and tow_area for scaling values) |

`metric` |
Variable in specificed data.table. e.g. "number", "mass" |

`strat_groups` |
Grouping variables for calculations of the fine-scale strat-level means (strat and strat_area are required). e.g. c("year", "species", "shiptrip", "NAFOdiv", "strat", "strat_area","age") |

`survey_groups` |
Grouping variables for large-scale summary calculations. e.g. ("year","species") |

`confidence` |
Percent for confidence limits |

Function was mainly created for use in the `run_strat`

function.
It first calculates strat-level statistics and then the larger-scale statistics like total abundance

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.