Skip to content

Subscript out of bounds with multiple output equations #256

@mhovd

Description

@mhovd

I suspect this is due to the regression line calculations.

Discussed in #255

Originally posted by BoburaII March 27, 2025
Hi,
I’m trying to plot op from a PM_result object (res), using: res$op$plot(outeq = 2)
I get the error: Error in summary(mod)$coefficients[2, 2] : subscript out of bounds

This didn’t happen previously with the same model and data. The model has 3 output equations, plotting op with outeq = 1 or outeq = 3 is fine. I'm using Pmetrics 2.1.1, R4.3.1, and recently updated macOS sequoia.
I appreciate any help with this.

Bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions