insightsengineering / insightsengineering/chevron

Expectation of factors in DMT01

Open
#675 8 comments 0 reactions 0 assignees View on GitHub
chevron
Dominant language
R
Stars
19
Forks
1
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Hi,
This issue covers beyond DMT01, but primarily impacts this extremely common table.
We can pass many variables into DMT01 to summarize (normally Demographic and Baseline Characteristics). If a category of a variable is present in one treatment group, but not another, then DMT01 fails and requires the variable to be passed as factor. This is a little erratic, especially as it will happen entirely dependent on data and its spread across treatment groups - and will eg. cause an error as data changes, or when applying filtering.
I understand this is not a `chevron` issue, but broader - but is there a better way we can process these types of templates so that the user is not forced to keep updating columns to factors just to display 0 under a treatment group?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.