distributed_lag

distributed_lag(x, knots, spline_fun, lag_name = "")

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

Value

matrix with distributed lag terms