makeWeightVec: Weight vector for time points

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
makeWeightVec(tp, FUN = NULL, link0 = TRUE, names = TRUE, ...)

Arguments

tp

numeric vector of sorted time points

FUN

a function to apply

link0

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

names

logical; should names by attached to the vector?

...

optional arguments passed to FUN

Value

a matrix of weights of length length(tp) - 1

Author(s)

Gavin L. Simpson

Examples

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

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