Coder Social home page Coder Social logo

excessmort's Introduction

excessmort's People

Contributors

rafalab avatar rjnunez avatar roblesm15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

excessmort's Issues

No s.e. from the fitted model of expected death

Dear Professor Irizarry,

I found that as “expected deaths” were calculated, the package itself only gave the estimate of expected without standard error. In this case, -compute_expected- and -expected_plot- do not give the confidence intervals of the estimates.

I would then like to suggest you to integrate standard error so as to calculate confidence interval for the estimates.

Your package is nicely written. Thank you so much for your awesome work!

Best,
Enoch

Error with monthly data

I'm trying this package out on monthly mortality data in Georgia. I've got the following variables:

  • Date (year, month, day--but just the first date of each month)
  • Outcome (count of deaths)
  • Population

There's 147 observations going back to 2000, and I exclude dates from 2020. When I run expected_count, I get the following error:

Error: Column expected must be length 7 (the group size) or one, not 147

Here's the function:
expect_test<-compute_expected(data_test,
frequency=7,
exclude=excludedates)

It looks like it's trying to created 1 expected count for each month but there's 20 years of data. Am I somehow setting this up wrong?

Covariates

Is there a way to include covariates such as temperature?

expected_plot() returns an error when compute_expected(..., keep.components = TRUE).

Not sure if this is expected behavior, but when using expected_plot(), I will get an error (Error in if (!attr(expected, "frequency") %in% c(365, 52)) warning("This function assumes weekly or daily data. This dataset has ", : argument is of length zero) if the object comes from compute_expected(..., keep.components = TRUE) but not if keep.components = FALSE despite all other parameters (and data) being identical.

If expected behavior, I think a more descriptive error would be helpful?

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.