View source: R/generatePBTGSIdata.R
To simulate multiple strata, one can run this repeatedly and add a strata variable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | generatePBTGSIdata(
sampRate = 0.1,
censusSize = 3000,
relSizePBTgroups = 1,
tagRates = 0.8,
obsTagRates = tagRates,
physTagRates = 0,
true_clipped = 0.5,
true_noclip_H = 0.2,
true_wild = 0.3,
relSizeGSIgroups = 1,
PBT_GSI_calls = 1,
varMatList = NA
)
|
sampRate |
the probability of sampling an individual in the population |
censusSize |
the total size of the populations |
relSizePBTgroups |
a numeric vector giving the relative sizes of the adipose fin intact PBT tagged groups |
tagRates |
a numeric vector giving the true PBT tag rates of the PBT tagged groups, in the
same order as |
obsTagRates |
a numeric vector giving the PBT tag rates of the PBT tagged groups to use when creating the
tag rate output, in the same order as |
physTagRates |
a numeric vector giving the true physical tagging rate (CWTs, PIT tags) of the PBT tagged groups, in the
same order as |
true_clipped |
the true proportion of the population with a clipped adipose fin |
true_noclip_H |
the true proportion of the population that is hatchery origin and has an intact adipose fin |
true_wild |
the true proportion of the population that is wild origin |
relSizeGSIgroups |
a numeric vector giving the relative sizes of GSI groups within the wild population |
PBT_GSI_calls |
a numeric matrix with rows equal to PBT groups, columns equal to GSI group and values giving the true proportions of the PBT fish that GSI assign to that GSI group |
varMatList |
a list of numeric matrices, one for each variable. Rows are PBT/GSI groups, in order of PBT groups followed by GSI groups, columns being the categories for the variable, and values being the proportion of the group in that category |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.