Coder Social home page Coder Social logo

attmomo's Introduction

AttMOMO - Attributable Mortality Model

Estimate number of deaths attributable to one or more pathogens, adjusted for excess temparatures.

AttMOMO

Wrapper for AttMOMO_estimation
Read input data from ;-separated .txt files. Which all must be available in wdir/data
Create output subdirectory wdir/AttMOMO_'EndWeek'
with the subdirectories:
/data - a copy of input data
/output - contain output from AttMOMO_estimation
Return estimates as a ;-separated .txt file in /output
if Rdata = TRUE also data.

AttData <- AttMOMO_estimation(
  country <- "Denmark"
  wdir <- "H:/SFSD/INFEPI/Projekter/AKTIVE/MOMO/AttMOMO/Denmark"
  StartWeek <- '2014-W27'
  EndWeek <- '2020-W22'
  groups = c('00to14', '15to44', '45to64', '65to74', '75to84', '85P', 'Total')
  pooled <- c('00to14', '15to44', '45to64', '65to74', '75to84', '85P')
  indicators <- c('GSIPLS', 'GSCLS')
  lags <- 3
  ptrend <- 0.05
  p26 <- 0.05
  p52 <- 0.10
  Rdata <- TRUE
)

AttMOMO_estimation

Read and merge input data
Prepare data for estimation e.g. create lags
Make the estimations by groups
Make pooled estimates over selected groups (optional)
Return a data.table with input data, mean estimated number of attributable deaths and their variances

Demand that the following data are available i R:
death_data - containing the variables: group, ISOweek, deaths
ET_data - containing the variables: ISOweek, ET (= excess temperature). Can be achieved via GetWdata and GetET
One dataset for each pathogen indicator. Containing the variables: group, ISOweek, 'indicator name' (= indicators nominel value)

AttData <- AttMOMO_estimation(
  country <- "Denmark"
  StartWeek <- '2014-W27'
  EndWeek <- '2020-W22'
  groups = c('00to14', '15to44', '45to64', '65to74', '75to84', '85P', 'Total')
  pooled <- c('00to14', '15to44', '45to64', '65to74', '75to84', '85P')
  indicators <- c('GSIPLS', 'GSCLS')
  death_data <- death_data
  ET_data <- ET_data
  lags <- 3
  ptrend <- 0.05
  p26 <- 0.05
  p52 <- 0.10
)

GetWdata

Read weather data achieved from EuroMOMO.
Select specified NUTS-codes
Return data with: date, pop3, NUTS3, temp, mintemp, maxtemp

GetET

Excess Temperature data from weather data.
Input data must contain: date, pop3, NUTS3 and the name of the variable to be used to calculate Excess Temperatures
Return data.table with ISOweek and ET (excess temperature)

GetMOMOdata

Convert an A-MOMO complete file to an AttMOMO input file.

attmomo's People

Contributors

jensxii avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.