Skip to content

"United Nations" method for smooth_age_5() may return negatives #274

Description

@TTRustam

Hello,

Please review the "United Nations" method in the smooth_age_5() function. It occasionally returns negative values when using hypothetical data, which should not happen. We should consider adding a warning and further clarification to the help documentation or implementing a fix. Additionally, please verify the adequacy of the provided example.

For instance, the following example (see age 10) shows unexpected behaviour with synthetic data:

deaths <- c(10266, 618, 411, 755, 1098,
1100, 1357, 1335, 3257, 2200,
4023, 2167, 4578, 2956, 4212,
2887, 2351, 1500, 900, 500, 300)

age <- seq(0, 100, 5)

smooth_age_5(Value = deaths,
Age = age,
method = "United Nations")

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