Description Usage Arguments Examples
This function calculates the half weight index for data in linear format
1 2 3 4 5 6 7 8 9 10 11 | half_weight(
sightings = sightings,
group_variable = group_variable,
dates = dates,
IDs = IDs,
diag = FALSE,
symmetric = TRUE,
mask = NULL,
assocInd = "HWI",
M = 0.5
)
|
sightings |
a dataframe in linear format, i.e., one row per individual per observation |
group_variable |
a unique group identifier |
dates |
dates |
IDs |
individual IDs |
diag |
logical, should the diagonal be included (default FALSE) |
symmetric |
logical, should a symmetric matrix be returned (default TRUE) |
mask |
an availability matrix where rows are individuals and columns are sighting dates, cells should be 1 for available or NA if not |
assocInd |
the association index "HWI" |
M |
the M-weight for the index, set to 0.5 for half-weight index |
1 | dat2mat()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.