1 Variable Definition

  • It uses Hmisc TOC style
  • Variable A
  • Variable B
  • Variable C

2 Datatable

3 Table I

what level Overall 0 1 p test Missing
n 1000 425 575
var1 (mean (SD)) -0.1 (1.0) 0.0 (1.0) -0.1 (0.9) 0.633 0.0
var2 (%) A 180 (18.0) 80 (18.8) 100 (17.4) 0.563 0.0
B 319 (31.9) 128 (30.1) 191 (33.2)
C 501 (50.1) 217 (51.1) 284 (49.4)
var3 (median [IQR]) 1.1 [0.5, 2.1] 0.9 [0.4, 2.0] 1.1 [0.6, 2.1] 0.041 nonnorm 0.0
* The default test for categorical variables is chi-squared test with Yates correction for continuity.
The default test for continuous variables is one-way ANOVA on means assuming equal variance. Kruskal-Wallis rank sum test has been applied for the variables where median and interquartile range (IQR) are shown on the table.

4 R Session

R version 4.2.0 (2022-04-22) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale: [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
[4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
[7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] Wu_0.0.0.9000 flexdashboard_0.5.2 lme4_1.1-29
[4] Matrix_1.4-0 mgcv_1.8-38 nlme_3.1-152
[7] png_0.1-7 scales_1.2.0 nnet_7.3-16
[10] labelled_2.9.1 kableExtra_1.3.4 knitr_1.39
[13] plotly_4.10.0 gridExtra_2.3 ggplot2_3.3.6
[16] DT_0.23 tableone_0.13.2 magrittr_2.0.3
[19] lubridate_1.8.0 dplyr_1.0.9 plyr_1.8.7
[22] data.table_1.14.2

loaded via a namespace (and not attached): [1] webshot_0.5.3 RColorBrewer_1.1-3 httr_1.4.3
[4] tools_4.2.0 backports_1.4.1 bslib_0.3.1
[7] utf8_1.2.2 R6_2.5.1 rpart_4.1-15
[10] Hmisc_4.7-0 DBI_1.1.2 lazyeval_0.2.2
[13] colorspace_2.0-3 withr_2.5.0 tidyselect_1.1.2
[16] compiler_4.2.0 cli_3.3.0 rvest_1.0.2
[19] htmlTable_2.4.0 xml2_1.3.3 sass_0.4.1
[22] checkmate_2.1.0 proxy_0.4-27 systemfonts_1.0.4
[25] stringr_1.4.0 digest_0.6.29 foreign_0.8-81
[28] minqa_1.2.4 rmarkdown_2.14 svglite_2.1.0
[31] base64enc_0.1-3 jpeg_0.1-9 pkgconfig_2.0.3
[34] htmltools_0.5.3 highr_0.9 fastmap_1.1.0
[37] htmlwidgets_1.5.4 rlang_1.0.4 rstudioapi_0.13
[40] jquerylib_0.1.4 generics_0.1.2 zoo_1.8-10
[43] jsonlite_1.8.0 crosstalk_1.2.0 Formula_1.2-4
[46] Rcpp_1.0.8.3 munsell_0.5.0 fansi_1.0.3
[49] lifecycle_1.0.1 stringi_1.7.8 yaml_2.3.5
[52] MASS_7.3-54 grid_4.2.0 forcats_0.5.1
[55] crayon_1.5.1 lattice_0.20-45 haven_2.5.0
[58] splines_4.2.0 hms_1.1.1 pillar_1.7.0
[61] boot_1.3-28 glue_1.6.2 evaluate_0.15
[64] mitools_2.4 latticeExtra_0.6-29 vctrs_0.4.1
[67] nloptr_2.0.3 gtable_0.3.0 purrr_0.3.4
[70] tidyr_1.2.0 xfun_0.31 survey_4.1-1
[73] e1071_1.7-11 class_7.3-19 survival_3.2-13
[76] viridisLite_0.4.0 tibble_3.1.7 cluster_2.1.2
[79] ellipsis_0.3.2