Skip to content

Feature Request: Simplify working with contrasts #28

@billdenney

Description

@billdenney

After generating a linear model, I often need to do subsequent operations to compute differences between contrasts and more accurately the difference between the coefficients of the fixed effects. Typically, I do this with the contrast package, but I also often need to compare multiple sets of contrasts which I can't do with contrast (as far as I know).

It would be helpful if I could provide a contrast matrix, a vector of coefficients (or fixed effects), and a variance-covariance matrix and use that to operate on the fixed effects of a model. I'd guess that this would be a new subclass of "errors" (something like a class of c("contrast_errors", "errors")) where the main "errors" object would work on the contrast values directly, and the "contrast_errors" object would work at the coefficient/fixed effects levels.

What do you think?

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