You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it used to be possible to request statistics on the number of missing and non-missing observations and their proportions for continuous variables. This now returns an error. Is this a bug or the feature has been removed?
It works fine for categorical variables.
Thanks
library(gtsummary)
trial|>
select(age) |>
tbl_summary(
statistic= all_continuous() ~"{N_miss}",
missing="no"
)
#> Error in `x[c("variable", "stat_name")]`:#> ! Can't subset columns that don't exist.#> ✖ Columns `variable` and `stat_name` don't exist.
You can still use them for continuous variables, but the function is expecting at least one continuous summary statistic, like the mean in the example below.
My use case is for a missing data analysis, where I would like to show the severity of missing data for each variable by a certain categorical variable. tbl_summary() was a neat way of doing this, especially with add_overall().
In the mean time, I've done a hacky thing to get what I want:
Hi, it used to be possible to request statistics on the number of missing and non-missing observations and their proportions for continuous variables. This now returns an error. Is this a bug or the feature has been removed?
It works fine for categorical variables.
Thanks
Created on 2024-12-06 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: