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?
I'm trying this package out on monthly mortality data in Georgia. I've got the following variables:
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
expectedmust be length 7 (the group size) or one, not 147Here'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?