Description Usage Arguments Value
View source: R/brf_distributed_lag.R
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).
1 2 | distributed_lag(x, knots, spline_fun = ns, lag_name = "",
n_subset = 1, n_shift = 0)
|
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 |
matrix with distributed lag terms
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.