sim_dlf: Simulate Distributed Lag Functions

View source: R/sim_dlf.R

sim_dlfR Documentation

Simulate Distributed Lag Functions

Description

generate true distributed lag function values for a given type of simulation

Usage

sim_dlf(L, modifiers, type)

Arguments

L

Number of lags minus 1

modifiers

Vector of modifiers

type

Effect modification simulation type: 1 is no modification, 2 is linear scale modification, 3 is non-linear shift modification, 4 is types 2 and 3 combined

Value

This function returns the true distributed lag function values (class "numeric")

See Also

sim_data

Type vignette('dlimOverview') for a detailed description.


dlim documentation built on May 29, 2024, 8:32 a.m.