makeWeightMat: Diagonal weight matrix for time points

Description Usage Arguments Value Author(s) Examples

Description

A diagonal matrix of weights based on the inverse of time duration between time points.

Usage

1
makeWeightMat(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 diagonal matrix of weights with dimensions length(tp) - 1

Author(s)

Gavin L. Simpson

Examples

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

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