Skip to content

NAs produced by resDirM #5

@mtvincent-NOAA

Description

@mtvincent-NOAA

I've been using your package to calculate the one step ahead residuals for age and length compositions that are fit by a Dirichlet-multinomial distribution. I noticed that the redDirM function does not work if you have any zeros in the observations. Therefore, I had added a small constant to the observed and predicted to try to overcome this issue. However, I still occasionally get the error message: In qnorm(pred$Fx - U * pred$px) : NaNs produced
Do you know what causes this or how it can be avoided?
I can send you some examples if necessary.

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