distributed_lag: distributed_lag

Description Usage Arguments Value

View source: R/brf_distributed_lag.R

Description

Depending on the vector to lag and the maximum knot, distributed_lag will either use an FFT (no NA and large maximum knot), or a parallel method (NA, or small maximum knot).

Usage

1
2
distributed_lag(x, knots, spline_fun = ns, lag_name = "",
  n_subset = 1, n_shift = 0)

Arguments

x

numeric vector to lag

knots

specific knots for the lagging process

spline_fun

spline function to use i.e. splines::ns, splines::bs

lag_name

name of variable to lag

n_subset

for distributed_lag parallel

n_shift

for distributed_lag parallel

Value

matrix with distributed lag terms


jkennel/waterlevel documentation built on Dec. 1, 2019, 6:24 p.m.