Description Usage Arguments Details Value Examples
Construct m-ij array with weighted probability
1 | marray_wtd(CH, n_occ)
|
CH |
Input file made by |
n_occ |
Total detection events including the trawl. |
It needs pre-assigned weights to calculate weighted m-ij. If all weights are the same, the results are the same as the unweighted m-ij.
m-ij array
1 2 3 4 5 6 | # pre-assign weights for intergrated and segregated populations
intgr<- 234012/(234012+813874) # 2014 CW
segr <- 813874/(234012+813874) # 2014 AD
# make input file, specify weighted sampling
wgt_data<- format_dat('C:/Users/bobbyhsu/Documents/Temp/SR HCH 2014 MCCA.csv', wgt='y')
marray(wgt_data, n_occ= 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.