Skip to content

tidy.rms for rms::orm ordinal regression? #14

@jarbet

Description

@jarbet

I can't get tidy.rms to work with rms::orm for ordinal logistic regression. I'm having a had time trying to manually extract the standard errors and pvalues myself too.

suppressPackageStartupMessages({
    library(rms);
    library(broom);
    library(Greg);
    });

dd <- datadist(mtcars);
options(datadist = 'dd');

fit <- rms::orm(
    # note rms::orm is designed to work with continuous/numeric outcomes too,
    # it can be viewed as a covariate-adjusted version of Wilcoxon rank-sum test
    formula = mpg ~ am,
    data = mtcars,
    se.fit = TRUE
    );
tidy(fit)
#> Error in `tibble()`:
#> ! Tibble columns must have compatible sizes.
#> • Size 25: Existing data.
#> • Size 2: Column `std.error`.
#> ℹ Only values of size one are recycled.

Created on 2025-08-25 with reprex v2.1.1

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