Skills

Charls Reproduce

CHARLS (China Health and Retirement Longitudinal Study) database-specific knowledge for...

Install

npx skills add xjtulyc/MedgeClaw --skill charls-reproduce -g -a claude-code -y
Repository
xjtulyc/MedgeClaw617
Category
Data and ML
Updated
8mo ago
License
See repository
Context cost
Mediumabout 1,694 tokens
Runs scripts
No, instructions only

What it does

CHARLS (China Health and Retirement Longitudinal Study) database-specific knowledge for reproducing published papers. Use when reproducing or analyzing papers that use CHARLS data, including variable mapping from harmonized to raw questionnaire items, cognitive function scoring (episodic memory, mental status, TICS), CESD-10 depression screening, social isolation index construction, and chronic disease coding. Also use for any CHARLS data cleaning, variable construction, or cohort selection task.

CHARLS Reproduce, CHARLS 数据库复现指南

CHARLS 概览

项目说明
全称China Health and Retirement Longitudinal Study (中国健康与养老追踪调查)
官网https://charls.pku.edu.cn/
覆盖全国 150 县级单位、450 社区,45 岁以上居民
波次wave1(2011), wave2(2013), wave3(2015), wave4(2018), wave5(2020)
格式Stata (.dta), 也有 harmonized 版本

Harmonized 数据集 vs 原始数据

大多数 CHARLS 论文使用原始问卷模块数据,变量名以 CHARLS 问卷编号命名(如 dc009s1)。但很多用户拿到的是 harmonized 数据集(合并所有波次,变量已清洗重命名)。

识别方法:

  • 如果有 wave 列且包含 wave1-wave5 → harmonized 数据
  • 如果有 dc009s1, be001, sc004_s1 等原始变量名 → 原始数据
  • harmonized 数据通常 ~10 万行(所有波次堆叠),原始数据每波 ~2 万行

关键差异: 变量名完全不同,缺失模式不同,编码方式不同。

核心变量映射表

认知功能

论文常用名原始变量Harmonized 变量范围说明
即时回忆dc009s1, dc009s10imrc0-1010 个词即时回忆正确数
延迟回忆dc012s1, dc012s10dlrc0-10延迟回忆正确数
情景记忆 (EM)自行计算recall 或 (imrc+dlrc)/20-10注意: recall = (imrc+dlrc)/2
Serial 7dc024 (5 次减法)ser70-5100 连续减 7,正确次数
日期定向dc003-dc006orient0-4= dw + dy + mo + yr(4 个二分项之和)
画图dc014draw0-1重画展示图形是否正确
心理状态 (MS)自行计算ser7 + orient + draw0-10重要: 见下方详解
总认知分自行计算total_cognition0-21但 ≠ imrc+dlrc+ser7+orient+draw

心理状态 (Mental Status) 构建详解

论文中 MS 通常定义为 TICS 题目总分 = Serial 7 + 日期定向 + 画图 = 0-10。

但注意:

  • orient = dw + dy + mo + yr(4 项,0-4),不含 ds(day of season)
  • 验证方法: orient == dw + dy + mo + yr 应 100% 吻合
  • 如果论文 MS 均值 ~5-7: 使用 ser7 + orient + draw(0-10)
  • 如果论文 MS 均值 ~3-4: 可能只用了 orient + draw(0-5),不含 ser7
  • ser7 缺失率高(Wave1 约 19%),如果样本量偏差大,考虑排除 ser7

关键经验: ser7 是 MS 定义中缺失率最高的子项。 如果筛选后样本量比论文少很多,先检查是否因 ser7 缺失。 尝试 ms = orient + draw 看样本量是否更接近论文。

抑郁 (CESD-10)

Read the whole SKILL.md on GitHub

More in Data and ML