distributed_lag.Rddistributed_lag
distributed_lag(x, knots, spline_fun, lag_name = "")
| 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 | 
matrix with distributed lag terms