Skip to contents

cardx 0.3.5

  • Corrected the ard_incidence_rate() documentation: the exact confidence interval lower bound now shows the degrees of freedom the code uses, and the description no longer states that the rate is always in person-years. (#367)

  • Added the n statistic, the number of subjects with at least one event, to ard_incidence_rate(), and relabeled the N statistic “Number of Subjects at Risk”. (#367)

  • Soft-deprecated ard_incidence_rate(count = NULL). Because data must include every subject at risk, counting each row as one event treats every subject as having an event, which is not meaningful. The count argument should always be specified. (#367)

  • Fixed bug in ard_incidence_rate() where std.error was reported per one unit of person-time while estimate, conf.low and conf.high were scaled by n_person_time; the standard error is now on the same per-n_person_time scale. (#366, @chenyangsu)

  • Clarified that ard_stats_t_test() follows stats::t.test() defaults and uses Welch’s t-test for unpaired two-sample comparisons. (#347, @JorAlEs)

  • Fixed bug in ard_summary.survey.design() for survey designs where the min and max statistics were computed on the raw data column, bypassing the design: an observation with weight 0—which enters no point estimate—could set the reported extremes. The extremes are now computed over rows with positive weight. (#352, @amaltawfik)

cardx 0.3.4

CRAN release: 2026-07-06

cardx 0.3.3

CRAN release: 2026-05-29

  • Fixed bug in extract_strata() where parentheses in strata level labels were incorrectly stripped, e.g. "Drug (B)" was truncated to "B". (#2388)

  • Added fix to ensure as_card does not error after update to cards

  • Bug fix in ard_car_vif() where non-syntactic variable names (e.g. those containing spaces) were returned with backticks in the variable column. Since gtsummary::tbl_regression() stores variable names without backticks, this mismatch resulted in empty VIF columns in gtsummary::add_vif(). (#335, @NourEdinDarwish)

cardx 0.3.2

CRAN release: 2026-02-05

cardx 0.3.1

CRAN release: 2025-12-04

cardx 0.3.0

CRAN release: 2025-08-27

New Features and Updates

Lifecycle Changes

Bug Fixes

cardx 0.2.4

CRAN release: 2025-04-12

New Features and Updates

cardx 0.2.3

CRAN release: 2025-02-18

New Features and Updates

Other Updates

  • Little n is now returned with the results of the proportion_ci_*() functions, which then flows into the results of ard_proportion_ci(). (#256)

  • Added as_cards_fun() to ard_categorical_ci() so when there is an error, the user gets an ARD with the expected ARD structure. (#262)

  • Update in ard_categorical.survey.design() for factor variables that are all missing. These variables can now be tabulated, where previously this resulted in an error.

  • Update in ard_missing.survey.design() where we can now tabulate the missing rate of design variables, such as the weights.

Bug Fixes

  • Fixed a bug in ard_survival_survfit() causing an error when “=” character is present in stratification variable level labels. (#252)

  • Bug fix in ard_categorical_ci(denominator='cell') when missing values were present in the by variable.

cardx 0.2.2

CRAN release: 2024-11-27

cardx 0.2.1

CRAN release: 2024-09-03

New Features and Updates

Bug Fixes

Lifecycle Changes

  • The bt(pattern), reformulate2(pattern_term), reformulate2(pattern_response) arguments have been deprecated and are now ignored. We now use make.names() to determine whether a column name needs to be wrapped in backticks. (#192)

cardx 0.2.0

CRAN release: 2024-07-20

Breaking Changes

  • Updated function names to follow the pattern ard_<pkgname>_<fnname>(). This change is immediate: previous functions names have not been deprecated. (#106)
ard_ttest()             -> ard_stats_t_test()
ard_paired_ttest()      -> ard_stats_paired_t_test()
ard_wilcoxtest()        -> ard_stats_wilcox_test()
ard_paired_wilcoxtest() -> ard_stats_paired_wilcox_test()
ard_chisqtest()         -> ard_stats_chisq_test()
ard_fishertest()        -> ard_stats_fisher_test()
ard_kruskaltest()       -> ard_stats_kruskal_test()
ard_mcnemartest()       -> ard_stats_mcnemar_test()
ard_moodtest()          -> ard_stats_mood_test()

New Features

cardx 0.1.0

CRAN release: 2024-03-18

  • Initial release.