separation: separation function

Description Usage Arguments Value

View source: R/separation.R

Description

separation function

Usage

1
separation(data, pm2.5, time, dow, temperature, optimal.df)

Arguments

data

Data includes temperature, daily death toll, PM2.5 concentration, time variable, boundary layer height and wind speed.

pm2.5

Enter the concentration of pm2.5 in a numeric format, eg. 150.

time

Enter the time in a Date format, eg. 2016-01-01.

dow

Enter the day of week variable in a factor format, eg. Monday.

temperature

Enter the temperature in a numeric format, eg. 12.

optimal.df

The degrees of freedom of natural spline function with time variable for predicting the exposure pm2.5 in a numeric format, eg. 15.

Value

resid1-calculate the residual change of pm2.5 after controlling the confounding factors of temperature and time trend.


stzhu96/IVEAPHE55 documentation built on Feb. 15, 2022, 8:29 a.m.