Giter VIP home page Giter VIP logo

two-way_effect_modifications's Introduction

Two-way_effect_modifications

Example R codes to assess two-way effect modifications of air pollution and air temperature on daily mortality: (1) Air pollution effects stratified by air temperature; (2) Air temperature effects stratified by air pollution concentrations. Poisson additive models with over-dispersion, together with a penalized distributed lag nonlinear temperature term developed by Dr. Antonio Gasparrini (https://github.com/gasparrini), is applied as the basic confounder model.

To examine effect modification by air temperature, air temperature is categorized into three levels. An interaction term between air pollutant and categorized air temperature at the same lag structure is added to the basic confounder model. Please use the "Modbytemp_3cat.R" function to get the air pollution effects stratified by three air temperature levels.

To examine effect modification by air pollutants, air pollutant is categorized into two levels. An interaction term between the penalized distributed lag nonlinear temperature term and an air pollutant strata indicator was added to the basic confounder model. Based on Dr. Gasparrini's DLNM package, a modified function in "crossreduce_int_2APcats.R" is applied to get air temperature effects stratified by air pollution concentrations.

For more details, please refer to the 2018 publication:

Chen K, Wolf K, Breitner S, Gasparrini A, Stafoggia M, Samoli E, et al. Two-way effect modifications of air pollution and air temperature on total natural and cardiovascular mortality in eight European urban areas. Environment International. 2018;116:186-96. doi: https://doi.org/10.1016/j.envint.2018.04.021.

two-way_effect_modifications's People

Contributors

chenlab-yale avatar

Stargazers

Rongzhang avatar  avatar

Watchers

James Cloos avatar  avatar

two-way_effect_modifications's Issues

[Main_Two_way_effect_modification.R]description

2024223154351

Reduction to the overall estimates

Using the modified function crossreduce_int for interaction analysis with AP_cat (3 categories)

red <- crossreduce_int_2APcats(basis=cbgam,model=model2, cen=21) ##using 21�C as the cen value
Error in lag != attr$lag && attr$arglag$fun == "integer" :
'length = 2' in coercion to 'logical(1)'

When running the above statement, the above error occurred, and I don't know how to solve it yet, so I turned to predecessor and looked forward to receiving a reply. Thank you very much.
2024223154351

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.