Description Usage Arguments Value Examples
This reproduces the results of the GLMC imputation as described by John Carlile.
1 2 3 | calc_GLMC(data.df, data.catch, stratum.var = "fishery.index",
year.var = "return.year", value.var = "N.ty", catchmin = 0,
ignoreCWTHR = 0:2)
|
data.df |
A data frame. Typically output from |
data.catch |
A list with structure equivalent to the output from the
function |
stratum.var |
A string. The name of the stratum variable. Default is "fishery.index". |
year.var |
A string. The name of the year variable. Default is "return.year". |
value.var |
A string. The name of the data variable. Default is "N.ty". |
catchmin |
An integer of length one. The minimum catch criteria for inclusion of a stratum in the estimation. Strata below this value are set to NA and estimated by imputation. Default is 0 (i.e. no strata are reset). |
A list of four data frames. The data frames are:
imputation.results, annual.estimate, prop.mean, data.df
. The first,
imputation.results
, comprises two columns. The first column usually
has the same name as the year.var
argument and the second is
N.t
. The other data frames represent the values calculated during
intermediary steps. The time series of proportions for year with complete
strata can be found in data.df.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.