The model is actually run by a separate function in order to allow a user to edit the priors and initial values before running.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
trapData |
dataframe with data for fish sampled from one strata - trap data for dam escapement |
tags |
dataframe with tag rates for all groups. This should NOT include the Unassigned group. |
GSIcol |
name of column containing GSI assignments. If you have no GSI information, create a column with the same value for all samples. |
PBTcol |
name of column containing PBT assignments |
strataCol |
name of column indicating the strata the observation belongs to |
variableCols |
vector of column names of columns containing the variables to estimate composition and to inform the group selection for PBT untagged fish |
variableColsOth |
vector of column names of columns containing the variables to estimate composition but NOT inform the group selection for PBT untagged fish |
adFinCol |
name of column containing adipose fin status - TRUE (or AI) being intact FALSE (or AD) being clipped, NA missing |
AI |
TRUE to analyze ad-intact fish, FALSE to analyze ad-clipped fish |
GSIgroups |
These are the values for all the GSI groups that you expect to be present in the population. If NA, then the values are taken to be all the unique values in the GSI column in the dataset within each strata (ie unobserved groups are assumed to be 0). |
variableValues |
a list, in the order of |
variableValuesOth |
Same as variableValues, but for variableColsOth |
symPrior |
All the priors are Dirichlet distributions. The default is to use this value for all the alphas of all the priors. You can, and are encouraged to, manually adjust the priors as you see fit prior to running the MCMC chain. |
verbose |
TRUE to print some messages, FALSE to not |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.