Skip to content

Handle covariance matrix with vector input #58

Description

@StaffanBetner

Functionality like this would be useful to have available:

lm(formula = mpg ~ cyl + wt, data = mtcars) |> coef() -> coefficients
lm(formula = mpg ~ cyl + wt, data = mtcars) |> vcov() -> covar_mat

set_errors(coefficients, value = covar_mat) -> coefficients_covar

It is a bit cumbersome to set the covariances one by one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions