Skip to content

Error with monthly data #1

Description

@jshannon75

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions