{"id":13857511,"url":"https://github.com/kaz-yos/tableone","last_synced_at":"2025-04-04T07:06:15.570Z","repository":{"id":13435333,"uuid":"16124394","full_name":"kaz-yos/tableone","owner":"kaz-yos","description":"R package to create \"Table 1\", description of baseline characteristics with or without propensity score weighting","archived":false,"fork":false,"pushed_at":"2023-05-06T23:59:14.000Z","size":5780,"stargazers_count":223,"open_issues_count":58,"forks_count":42,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-28T06:06:59.322Z","etag":null,"topics":["baseline-characteristics","cran","descriptive-statistics","r","statistics"],"latest_commit_sha":null,"homepage":"https://cran.r-project.org/web/packages/tableone/index.html","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaz-yos.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-01-22T01:06:44.000Z","updated_at":"2025-03-13T09:15:24.000Z","dependencies_parsed_at":"2022-09-14T17:22:22.236Z","dependency_job_id":"daa48ae9-2d55-4fe1-a5f1-fbc1ca834cc1","html_url":"https://github.com/kaz-yos/tableone","commit_stats":{"total_commits":828,"total_committers":13,"mean_commits":63.69230769230769,"dds":0.3623188405797102,"last_synced_commit":"e2e7cccdc8b9d51c8cb2bb1da91f4663bed5e128"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaz-yos%2Ftableone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaz-yos%2Ftableone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaz-yos%2Ftableone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaz-yos%2Ftableone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaz-yos","download_url":"https://codeload.github.com/kaz-yos/tableone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135143,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baseline-characteristics","cran","descriptive-statistics","r","statistics"],"created_at":"2024-08-05T03:01:39.298Z","updated_at":"2025-04-04T07:06:15.548Z","avatar_url":"https://github.com/kaz-yos.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r, message = FALSE, tidy = FALSE, echo = F}\n## knitr configuration: https://yihui.name/knitr/options#chunk_options\nlibrary(knitr)\nshowMessage \u003c- FALSE\nshowWarning \u003c- TRUE\nset_alias(w = \"fig.width\", h = \"fig.height\", res = \"results\")\nopts_chunk$set(comment = \"##\", error= TRUE, warning = showWarning, message = showMessage,\n               tidy = FALSE, cache = FALSE, echo = TRUE,\n               fig.width = 7, fig.height = 7,\n               fig.path = \"man/figures\")\n## for rgl\n## knit_hooks$set(rgl = hook_rgl, webgl = hook_webgl)\n## for animation\nopts_knit$set(animation.fun = hook_ffmpeg_html)\n## R configuration\noptions(width = 116, scipen = 5)\n```\n\n# tableone\n\n[![R-CMD-check](https://github.com/kaz-yos/tableone/workflows/R-CMD-check/badge.svg)](https://github.com/kaz-yos/tableone/actions)\n[![](https://www.r-pkg.org/badges/version/tableone)](https://www.r-pkg.org/pkg/tableone)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/tableone)](https://www.r-pkg.org/pkg/tableone)\n\n**An R package to create \"Table 1\", description of baseline characteristics**\n\nCreates \"Table 1\", i.e., description of baseline patient characteristics, which is essential in every medical research. Supports both continuous and categorical variables, as well as p-values and standardized mean differences. Weighted data are supported via the survey package.\n\ntableone was inspired by descriptive statistics functions in Deducer , a Java-based GUI package by Ian Fellows. This package does not require GUI or Java, and intended for command-line users.\n\n\n# tableone in action\n\n![screencast](man/figures/tableone.gif \"screencast\")\n\nThe code being executed can be found in the introduction vignette.\n\n\n# tableone code example\n\nIn this table, continuous and categorical variables can be placed in any order. The p-valeus are from exact tests for pre-specified variables. For nonnormal variables, it shows median and IQR instead of mean and SD, and p-values are from nonparametric tests. Numerically coded categorical variables can be transformed on the fly with factorVars. SMD stands for standardized mean differences. For weighted data, first created a svydesign object, and use the svyCreateTableOne() function. Most other options remain the same.\n\n```{r}\n## Load package\nlibrary(tableone)\n## Load data\ndata(pbc, package = \"survival\")\n# drop ID from variable list\nvars \u003c- names(pbc)[-1]\n## Create Table 1 stratified by trt (can add more stratifying variables)\ntableOne \u003c- CreateTableOne(vars = vars, strata = c(\"trt\"), data = pbc,\n                            factorVars = c(\"status\",\"edema\",\"stage\"))\n## Specifying nonnormal variables will show the variables appropriately,\n## and show nonparametric test p-values. Specify variables in the exact\n## argument to obtain the exact test p-values.\nprint(tableOne, nonnormal = c(\"bili\",\"chol\",\"copper\",\"alk.phos\",\"trig\"),\n      exact = c(\"status\",\"stage\"), smd = TRUE,\n      formatOptions = list(big.mark = \",\"))\n```\n\n\n# Installation\n\nThis version of tableone package for R is developmetal, and may not be available from the CRAN. You can install it using one of the following way.\n\n**Direct installation from github**\n\nYou first need to install the devtools package to do the following. You can choose from the latest stable version and the latest development version.\n\n```{r, eval = FALSE}\n## Install devtools (if you do not have it already)\ninstall.packages(\"devtools\")\n## Install directly from github (develop branch)\ndevtools::install_github(repo = \"kaz-yos/tableone\", ref = \"develop\")\n```\n\nUsing devtools may requires some preparation, please see the following link for information.\n\nhttps://www.rstudio.com/projects/devtools/\n\n\n# Contributors\n\nI would like to thank all the contributors!\n\n- Alexander Bartel [ndevln](https://github.com/ndevln)\n- Jonathan J Chipman [chipmanj](https://github.com/chipmanj)\n- Justin Bohn [jmb01](https://github.com/jmb01)\n- Lucy D'Agostino McGowan [LucyMcGowan](https://github.com/LucyMcGowan)\n- Malcolm Barrett [malcolmbarrett](https://github.com/malcolmbarrett)\n- Rune Haubo B Christensen [runehaubo](https://github.com/runehaubo)\n- [gbouzill](https://github.com/gbouzill)\n\n\n# Similar or complementary projects\n\nThere are multiple similar or complementary projects of interest.\n\n- DescTools: Tools for Descriptive Statistics. https://cran.r-project.org/web/packages/DescTools/index.html\n- Gmisc: Descriptive Statistics, Transition Plots, and More. https://cran.r-project.org/web/packages/Gmisc/\n- Hmisc (summary.formula): Advanced table making and many more. https://github.com/harrelfe/Hmisc/\n- arsenal: An Arsenal of 'R' Functions for Large-Scale Statistical Summaries. https://github.com/eheinzen/arsenal\n- atable: Create Tables for Reporting Clinical Trials. https://github.com/arminstroebel/atable\n- compareGroups: Descriptive Analysis by Groups. http://www.comparegroups.eu\n- expss: Tables with Labels and Some Useful Functions from Spreadsheets and 'SPSS' Statistics. https://github.com/gdemin/expss\n- finalfit: Quickly Create Elegant Regression Results Tables and Plots when Modelling. https://finalfit.org/index.html\n- framework for easily create tables for reporting: framework for easily create tables for reporting. https://davidgohel.github.io/flextable/\n- furniture: Furniture for Quantitative Scientists. https://cran.r-project.org/web/packages/furniture/\n- gtsummary: Presentation-Ready Data Summary and Analytic Result Tables.  https://CRAN.R-project.org/package=gtsummary\n- htmlTable: An R package for generating advanced tables. https://github.com/gforge/htmlTable\n- kableExtra: Construct Complex Table with 'kable' and Pipe Syntax. https://github.com/haozhu233/kableExtra\n- pander: An R Pandoc Writer. https://rapporter.github.io/pander/\n- pixiedust: Format models for console and to markdown, HTML, and LaTeX. https://github.com/nutterb/pixiedust\n- qwraps2: quickly placing data summaries and formatted regression results into .Rnw or .Rmd files. https://github.com/dewittpe/qwraps2/\n- stargazer: Well-Formatted Regression and Summary Statistics Tables. https://cran.r-project.org/web/packages/stargazer/index.html\n- tab: Functions for Creating Summary Tables for Statistical Reports. https://cran.r-project.org/package=tab\n- table1: Tables of Descriptive Statistics in HTML. https://github.com/benjaminrich/table1\n- table1xls: Exports Reproducible Summary Tables to Multi-Tab Spreadsheet Files. https://cran.r-project.org/web/packages/table1xls/index.html\n- xtable: Export Tables to LaTeX or HTML. https://cran.r-project.org/web/packages/xtable/index.html\n- (Python) tableone: Create \"Table 1\" for research papers in Python. https://github.com/tompollard/tableone\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaz-yos%2Ftableone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaz-yos%2Ftableone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaz-yos%2Ftableone/lists"}