当前位置: 首页 > news >正文

R语言复杂抽样调查数据统计描述和分析

gtsummary包中tbl_svysummary提供了统计描述;tableone包中的svyCreateTableOne提供了统计比较;原始描述和比较可以是有table1包。

#测试数据
library(survey)
setwd("F://")
data(Titanic)
sur_des<-survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq)
str(Titanic)

#1 使用gtsummary包
library(gtsummary)
tabl1<-tbl_svysummary(data=sur_des,by = Survived, percent = "row",statistic=list(all_continuous() ~ "{median} ({p25}, {p75})", all_categorical() ~ "{n} ({p}%)"))

#2 使用tableone包
library(tableone)
tabl2 <- svyCreateTableOne(vars = c("Age","Sex"),strata = "Survived", data = sur_des,factorVars = c("Age","Sex"))

 

 借鉴既往已发表的SCI:

1、部分研究曾使用过svyCreateTableOne

【1】Rosenbloom JM, Burns SM, Kim E, August DA, Ortiz VE, Houle TT. Race/Ethnicity and Sex and Opioid Administration in the Emergency Room. Anesth Analg. 2019 May;128(5):1005-1012. doi: 10.1213/ANE.0000000000003517. PMID: 29863607; PMCID: PMC6611165.

Based on our a priori inclusion/exclusion criteria, a weighted sample of 553 patients representing a total of 2,622,926 patients was included, composed of 1,858,035 (70.8%) females and 1,535,794 (58.6%) Caucasian non-Hispanics. The average age was 33.3 (standard deviation = 11.4) years and 170,975 (6.5 %) cases were emergent. The sample included patients from all 4 geographical regions in the United States and 44.0% patients had private insurance (Table 1; Supplemental Digital Content 1, Table, http://links.lww.com/AA/C432). Overall, 61.4% of patients received opioids (Table 2).

【2】Inoue K, Seeman TE, Nianogo R, Okubo Y. The effect of poverty on the relationship between household education levels and obesity in U.S. children and adolescents: an observational study. Lancet Reg Health Am. 2023. 25: 100565.


http://www.mrgr.cn/news/54499.html

相关文章:

  • Virtuoso Layout无法显示元件,出现pcellEvalFailed错误问题解析
  • JSP + Servlet:构建动态Web应用的经典组合
  • 【【自动驾驶】车辆运动学模型】
  • Git_IDEA集成Git
  • Atlas800昇腾服务器(型号:3000)—AIPP加速前处理(四)
  • 深度学习-1:逻辑回归和梯度下降
  • LeetCode-三数之和-Java
  • SpringBoot民宿预订系统设计与实现
  • manjaro kde 磁盘扩容
  • 基于SpringBoot+Vue实现九峰山旅游平台系统
  • 2025考研各省网上确认时间汇总!(别忘记)
  • Miniconda3 Linux安装教程
  • 垃圾收集器与内存分配机制(三)
  • 父母教养方式测试:理解与优化家庭教育的关键
  • 动态内存管理(上)
  • 偏差和均方根误差,偏差小,拟合的好,均方根误差小,波动程度小
  • 网络数据谁来监管?——法律许可下的用户数据获取与风险解读
  • spark、hadoop和hive自学路线
  • 简易的网站数据流动过程介绍 -- 用户注册/登录逻辑
  • 云开发之Github仓库代码利用
  • 智慧商城项目1-项目初始化创建
  • C语言动态内存管理
  • linux线程 | 同步与互斥 | 深度学习与理解同步
  • 【大数据分析与挖掘算法】matlab实现——DBSCAN聚类方法
  • Git_IDEA集成Git
  • “敌人野猪”受伤和死亡的逻辑和动画