-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels