NHANES 2017-2018 Height Weight Data
收藏Figshare2023-02-25 更新2026-04-08 收录
下载链接:
https://figshare.com/articles/dataset/NHANES_2017-2018_Height_Weight_Data/22086662/2
下载链接
链接失效反馈官方服务:
资源简介:
This is the age, height, and weight data extracted from the NHANES 2017-2018 survey dataset. The original data were BMX_J.xpt (see https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Examination&CycleBeginYear=2017) and DEMO_J.xpt (see https://wwwn.cdc.gov/nchs/nhanes/search/datapage.aspx?Component=Demographics&CycleBeginYear=2017). I used Linux Mint 20 to get the CSV files from the above XPT files. First, I installed the R foreign package by the next command. $ sudo apt install r-cran-foreign Then, I developed two R scripts to extract the CSV data. The scripts are attached to this dataset. For analysis of the CSV file, I used the following commands within the R environment. > data <- read.csv("NHANES-2017-2018-height-weight.csv") > h <- data$height[data$age>=20 & data$age<=65]/100 > w <- data$weight[data$age>=20 & data$age<=65] > wt <- log10(w) > ht <- log10(h) > model <- lm(wt ~ ht) > summary(model) Call: lm(formula = wt ~ ht) Residuals: Min 1Q Median 3Q Max -0.29406 -0.07182 -0.00558 0.06514 0.47048 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 1.46404 0.01423 102.90 <2e-16 *** ht 2.00351 0.06369 31.45 <2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 0.1045 on 3916 degrees of freedom Multiple R-squared: 0.2017, Adjusted R-squared: 0.2015 F-statistic: 989.4 on 1 and 3916 DF, p-value: < 2.2e-16
提供机构:
Zhao, Liang
创建时间:
2023-02-25



