Skip to content

Incorrect predAge warning message: "The number of missing CpGs .. exceeds 80%." #39

Description

@friedav

Hello,

Thanks for this great package!

I noticed a potential error in the warning message concerning CpG missingness when running DNAmAge(). As expected, when the CpG missingness exceeds 20%, the epigenetic age is not estimated for a given clock. However, the warning states that more than 80% are missing, which appears to be incorrect. In the case where I noticed this, checkClocks() showed a missingness of 25.7% for the TLclock, but I still received the following warning:

In predAge(cpgs.imp, coefTL, intercept = TRUE, min.perc) :
  The number of missing CpGs forTLclock exceeds 80%.
  ---> This DNAm clock will be NA.

I would suggest to change this to The number of missing CpGs for TLclock exceeds 20%. to avoid potential confusion.

Best,
Friederike

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