Skip to content

Confidence interval is NA characters when parameter name is character and positive curvature #85

@schuemie

Description

@schuemie

This is causing downstream problems where my code expects the confidence interval to be numeric. For example, exp(as.character(NA)) throws an error, but exp(as.numeric(NA)) does not.

Here the covariate column is set to savedParam, which in my case is a string. Later the as.matrix() causes the entire matrix to become character, including the lower and upper columns.

If we don't hit the exception, the covariate column is set to the numeric result of 'checkCovariates() instead, and the as.matrix() makes everything numeric.

The simple solution would be to change this line to say

prof <- data.frame(covariate = parm,

But it seems you went out of your way to save the parameter name. Any reason why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions