Note that you have to be sure that stock_group_start_col is appropriate for the input file. The input file can be modified to do stock-sex or stock-age if desired.
1 | do_steelhead(STOCK.DATA.XLSX, stock_group_start_col, nsim, B, DO_GSI_ON_PROP)
|
STOCK.DATA.XLSX |
The basename of the file with the data in it for running the simulation The function assumes that the file is in the "data_files" directory of the package. |
stock_group_start_col |
The column at which the stock groups start in the xlsx file (or, equivalently,
in the data frame W). That data frame, (whether it was passed in as W or read from an xlsx file) must have column
names that correspond to the groupings of stocks that you want to do the bootstrapping for. (For example,
"UPSALM", "MFSALM", "SFSALM", ... ). The column at which those names start must be passed to this function as
|
nsim |
number of simulation replicates to do. The default is 2 — much lower than it should be (should be more like 500) because it takes a long time and this is better for testing |
B |
number of bootstrap replicates. The default is 5 — much lower than it should be (should be more like 500) because it takes a long time and this is better for testing. |
DO_GSI_ON_PROP |
if set to TRUE then gsi_sim is used to create assignments that replace the assignments in the variable Prop. If FALSE then the true origins are used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.