half_weight: Half Weight Index

Description Usage Arguments Examples

View source: R/half_weight.R

Description

This function calculates the half weight index for data in linear format

Usage

 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
)

Arguments

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

Examples

1

vjf2/SocGen documentation built on April 24, 2021, 10:59 a.m.