lar: Lagged Association Rate

Description Usage Arguments Details Functions

Description

Calculate the lagged association rate for a two-mode observation matrix

Usage

1
2
3
lar(x, group = c(1:dim(x)[1]), t = 1, cutoff = 0)

null.lar(x, group = c(1:dim(x)[1]), t = 1, cutoff = 0)

Arguments

x

a m X n observation matrix

group

an integer vector of length m indicating the time grouping of the observations. Group values should be sequential with no gaps. The vector does not need to be sorted.

t

the order of the lag

cutoff

the number of times above which two entities must be observed together within a single time group to count as being associated

Details

The grouping variable group is used to aggregate observational data to daily, weekly, yearly, etc., rates of association. This allows you to calculate a lagged association rate between two months or two years. Cases that should be grouped together should be assigned the same group number.

cutoff is only useful if you group observations, and allows you to set a minimum number of times two entities must be observed together in order to count as being associated. Note that two entities must be observed together MORE THAN the value of cutoff

Functions


thom82/whassocr documentation built on May 31, 2019, 10:46 a.m.