GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yea-hung/estimateexcess: An R package for estimating excess mortality.

BranchesTags
Open more actions menu

Latest commit

 

History

90 Commits
90 Commits

Folders and files

NameName
Last commit message
Last commit date
R
R
 
 
man
man
 
 
DESCRIPTION
DESCRIPTION
 
 
NAMESPACE
NAMESPACE
 
 
README.md
README.md
 
 

Repository files navigation

Summary

An R package for estimating excess mortality, using seasonal ARIMA models.

Installation

To install the package, use install_github() from the remotes package or pkg_install() from the pak package:

pak::pkg_install('yea-hung/estimateexcess')

Use

Load the package:

library(estimateexcess)

Import your data:

weekly_data<-readRDS('weekly data.rds')

To estimate excess mortality for the variable Inland Empire:

rr<-estimate_weekly_excess('Inland Empire',weekly_data)

To view the plot:

rr$plot

A possible framework for analyzing multiple variables is as follows:

r1<-estimate_weekly_excess('Los Angeles County',weekly_data)
r2<-estimate_weekly_excess('San Francisco Bay Area',weekly_data)
r3<-estimate_weekly_excess('Inland Empire',weekly_data)
results<-rbind(r1$results,r2$results,r3$results)

This stacks all of the results from each analysis into a single data frame, named results.

Methodological details

The weekly models use an approach described here and here.

About

An R package for estimating excess mortality.

Topics

excess-deathsexcess-mortalityrtime-series

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.