tableone
========
[![Travis-CI Build
Status](https://travis-ci.org/kaz-yos/tableone.svg?branch=develop)](https://travis-ci.org/kaz-yos/tableone)
[![](http://www.r-pkg.org/badges/version/tableone)](http://www.r-pkg.org/pkg/tableone)
[![CRAN RStudio mirror
downloads](http://cranlogs.r-pkg.org/badges/tableone)](http://www.r-pkg.org/pkg/tableone)
**An R package to create “Table 1”, description of baseline
characteristics**
Creates “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.
tableone 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.
tableone in action
==================
![screencast](tableone.gif "screencast")
The code being executed can be found in the introduction vignette.
tableone code example
=====================
In 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.
## Load package
library(tableone)
## Load data
data(pbc, package = "survival")
# drop ID from variable list
vars <- names(pbc)[-1]
## Create Table 1 stratified by trt (can add more stratifying variables)
tableOne <- CreateTableOne(vars = vars, strata = c("trt"), data = pbc,
factorVars = c("status","edema","stage"))
## Specifying nonnormal variables will show the variables appropriately,
## and show nonparametric test p-values. Specify variables in the exact
## argument to obtain the exact test p-values.
print(tableOne, nonnormal = c("bili","chol","copper","alk.phos","trig"),
exact = c("status","stage"), smd = TRUE,
formatOptions = list(big.mark = ","))
## Stratified by trt
## 1 2 p test SMD
## n 158 154
## time (mean (SD)) 2,015.62 (1,094.12) 1,996.86 (1,155.93) 0.883 0.017
## status (%) 0.884 exact 0.054
## 0 83 (52.5) 85 (55.2)
## 1 10 ( 6.3) 9 ( 5.8)
## 2 65 (41.1) 60 (39.0)
## trt (mean (SD)) 1.00 (0.00) 2.00 (0.00) <0.001 Inf
## age (mean (SD)) 51.42 (11.01) 48.58 (9.96) 0.018 0.270
## sex = f (%) 137 (86.7) 139 (90.3) 0.421 0.111
## ascites (mean (SD)) 0.09 (0.29) 0.06 (0.25) 0.434 0.089
## hepato (mean (SD)) 0.46 (0.50) 0.56 (0.50) 0.069 0.206
## spiders (mean (SD)) 0.28 (0.45) 0.29 (0.46) 0.886 0.016
## edema (%) 0.877 0.058
## 0 132 (83.5) 131 (85.1)
## 0.5 16 (10.1) 13 ( 8.4)
## 1 10 ( 6.3) 10 ( 6.5)
## bili (median [IQR]) 1.40 [0.80, 3.20] 1.30 [0.72, 3.60] 0.842 nonnorm 0.171
## chol (median [IQR]) 315.50 [247.75, 417.00] 303.50 [254.25, 377.00] 0.544 nonnorm 0.038
## albumin (mean (SD)) 3.52 (0.44) 3.52 (0.40) 0.874 0.018
## copper (median [IQR]) 73.00 [40.00, 121.00] 73.00 [43.00, 139.00] 0.717 nonnorm <0.001
## alk.phos (median [IQR]) 1,214.50 [840.75, 2,028.00] 1,283.00 [922.50, 1,949.75] 0.812 nonnorm 0.037
## ast (mean (SD)) 120.21 (54.52) 124.97 (58.93) 0.460 0.084
## trig (median [IQR]) 106.00 [84.50, 146.00] 113.00 [84.50, 155.00] 0.370 nonnorm 0.017
## platelet (mean (SD)) 258.75 (100.32) 265.20 (90.73) 0.555 0.067
## protime (mean (SD)) 10.65 (0.85) 10.80 (1.14) 0.197 0.146
## stage (%) 0.205 exact 0.246
## 1 12 ( 7.6) 4 ( 2.6)
## 2 35 (22.2) 32 (20.8)
## 3 56 (35.4) 64 (41.6)
## 4 55 (34.8) 54 (35.1)
Installation
============
This 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.
**Direct installation from github**
You first need to install the devtools package to do the following. You
can choose from the latest stable version and the latest development
version.
## Install devtools (if you do not have it already)
install.packages("devtools")
## Install directly from github (develop branch)
devtools::install_github(repo = "kaz-yos/tableone", ref = "develop")
Using devtools may requires some preparation, please see the following
link for information.
<a href="http://www.rstudio.com/projects/devtools/" class="uri">http://www.rstudio.com/projects/devtools/</a>
Contributors
============
I would like to thank all the contributors!
- Alexander Bartel [ndevln](https://github.com/ndevln)
- Jonathan J Chipman [chipmanj](https://github.com/chipmanj)
- Justin Bohn [jmb01](https://github.com/jmb01)
- Lucy D’Agostino McGowan
[LucyMcGowan](https://github.com/LucyMcGowan)
- Malcolm Barrett [malcolmbarrett](https://github.com/malcolmbarrett)
- Rune Haubo B Christensen [runehaubo](https://github.com/runehaubo)
- [gbouzill](https://github.com/gbouzill)
Similar or complementary projects
=================================
There are multiple similar or complementary projects of interest.
- DescTools: Tools for Descriptive Statistics.
<a href="https://cran.r-project.org/web/packages/DescTools/index.html" class="uri">https://cran.r-project.org/web/packages/DescTools/index.html</a>
- Gmisc: Descriptive Statistics, Transition Plots, and More.
<a href="https://cran.r-project.org/web/packages/Gmisc/" class="uri">https://cran.r-project.org/web/packages/Gmisc/</a>
- Hmisc (summary.formula): Advanced table making and many more.
<a href="http://biostat.mc.vanderbilt.edu/wiki/Main/Hmisc" class="uri">http://biostat.mc.vanderbilt.edu/wiki/Main/Hmisc</a>
- arsenal: An Arsenal of ‘R’ Functions for Large-Scale Statistical
Summaries.
<a href="https://github.com/eheinzen/arsenal" class=
没有合适的资源?快使用搜索试试~ 我知道了~
tableone:用于创建“表1”的R包,描述具有或不具有倾向得分加权的基线特征.zip
共254个文件
rds:102个
txt:41个
r:35个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 184 浏览量
2023-10-11
20:53:03
上传
评论
收藏 3.33MB ZIP 举报
温馨提示
tableone:用于创建“表1”的R包,描述具有或不具有倾向得分加权的基线特征.zip
资源推荐
资源详情
资源评论
收起资源包目录
tableone:用于创建“表1”的R包,描述具有或不具有倾向得分加权的基线特征.zip (254个子文件)
docsearch.css 11KB
pkgdown.css 7KB
bootstrap-toc.css 2KB
DESCRIPTION 1KB
tableone.gif 2.63MB
.gitignore 71B
smd.html 73KB
CreateTableOne.html 56KB
print.ContTable.html 45KB
introduction.html 42KB
CreateContTable.html 41KB
print.CatTable.html 38KB
CreateCatTable.html 37KB
svyCreateTableOne.html 29KB
index.html 23KB
print.TableOne.html 13KB
print.svyCatTable.html 12KB
ShowRegTable.html 11KB
print.svyContTable.html 11KB
svyCreateContTable.html 10KB
index.html 10KB
svyCreateCatTable.html 10KB
tableone-package.html 8KB
kableone.html 8KB
summary.svyContTable.html 8KB
summary.svyCatTable.html 8KB
summary.ContTable.html 8KB
summary.CatTable.html 8KB
summary.TableOne.html 7KB
ExtractSmd.html 7KB
cran-comment.html 6KB
authors.html 6KB
index.html 5KB
404.html 5KB
bootstrap-toc.js 5KB
pkgdown.js 3KB
docsearch.js 2KB
empty-anchor.js 653B
empty-anchor.js 653B
header-attrs.js 507B
header-attrs.js 507B
Makefile 4KB
README.md 11KB
cran-comment.md 609B
README.md 402B
NAMESPACE 987B
NEWS 14KB
unnamed-chunk-9-1.png 311KB
test-modules-smd.R 45KB
test-svyCreateTableOne.R 33KB
modules-print.R 30KB
test-CreateTableOne.R 27KB
test-modules-print.R 23KB
print.CatTable.R 16KB
CreateTableOne.R 16KB
print.ContTable.R 14KB
print.svyCatTable.R 14KB
CreateContTable.R 13KB
modules-constructors.R 12KB
print.svyContTable.R 12KB
test-modules-svy.R 12KB
modules-smd.R 12KB
svyCreateTableOne.R 11KB
print.TableOne.R 10KB
CreateCatTable.R 10KB
modules-svy.R 8KB
svyCreateContTable.R 8KB
test-ShowRegTable.R 8KB
svyCreateCatTable.R 7KB
ShowRegTable.R 6KB
summary.svyCatTable.R 4KB
test-ExtractSmd.R 4KB
summary.CatTable.R 4KB
tableone-package.R 2KB
test-modules.R 2KB
ExtractSmd.R 2KB
summary.svyContTable.R 1KB
summary.TableOne.R 1KB
summary.ContTable.R 1KB
modules-ShowRegTable.R 796B
lmerTest_utils.R 662B
test-all.R 491B
kableone.R 484B
.Rbuildignore 383B
CreateTableOne.Rd 9KB
print.CatTable.Rd 6KB
CreateContTable.Rd 6KB
print.ContTable.Rd 5KB
CreateCatTable.Rd 5KB
svyCreateTableOne.Rd 5KB
print.TableOne.Rd 4KB
print.svyCatTable.Rd 3KB
print.svyContTable.Rd 3KB
svyCreateContTable.Rd 3KB
svyCreateCatTable.Rd 2KB
tableone-package.Rd 2KB
ShowRegTable.Rd 2KB
summary.svyContTable.Rd 1KB
summary.svyCatTable.Rd 1KB
summary.ContTable.Rd 1KB
共 254 条
- 1
- 2
- 3
资源评论
N201871643
- 粉丝: 798
- 资源: 2292
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
- A pure Python library for adding tables to a Tkinter application
- Vector资源文件.zip
- MobaXterm-Installer
- MicroMsg.xlsx
- 88-520告白(520气球).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功