makeWeights: Temporal weight matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Build a temporal weighting matrix

Usage

1
makeWeights(tp, FUN = NULL, link0 = TRUE, dimnames = TRUE, ...)

Arguments

tp

numeric vector of sorted time points

FUN

a function to apply

link0

logical; should the link from t[0] be included?

dimnames

logical; should dimnames by attached to the matrix?

...

optional arguments passed to FUN

Value

a square, symmetric matrix of weights.

Author(s)

Gavin L. Simpson

See Also

makeLinks for a matching link matrix

Examples

1
2
tp <- seq_len(10)
makeWeights(tp)

gavinsimpson/temporalEF documentation built on May 16, 2019, 10:11 p.m.