Generates new variables in a dataframe for lags and means over lag periods.
create_lagged_variables(data, wildfire_lag, temperature_lag)Dataframe with added columns for lagged temperature and wildfire-related PM2.5 concentration
Dataframe containing a daily time series of climate and health data
Integer. The number of days for which to calculate the lags for wildfire PM2.5. Default is 3.
Integer. The number of days for which to calculate the lags for temperature. Default is 1.