tests/testthat/_snaps/matching.md

weighted median is correct

Code
  check_weights_result
Output
    covariate match_stat internal_trial internal_trial_after_weighted
  1       AGE       Mean         59.850                         51.00
  2       AGE         SD          9.011                          3.25
  3  SEX_MALE       Prop          0.380                          0.49
  4     ECOG0       Prop          0.410                          0.40
  5     SMOKE       Prop          0.320                          0.20
  6 N_PR_THER     Median          3.000                          2.00
    external_trial sum_centered_IPD_with_weights
  1          51.00                        0.0001
  2           3.25                        0.0125
  3           0.49                        0.0000
  4           0.40                        0.0000
  5           0.20                        0.0000
  6           2.00                        0.0000


Try the maicplus package in your browser

Any scripts or data that you put into this service are public.

maicplus documentation built on April 4, 2025, 2:17 a.m.