The dataset used for the analyses in Section 7 of the paper is from the National Health and Nutrition Examination Survey (NHANES) 2017–2018, a program of studies designed to assess the health and nutritional status of adults and children in the United States.
The dataset is available for download at www.cdc.gov/nchs/nhanes.htm.
The variable of interest DXDTOPF). The demographics
data include age(variable RIDAGEYR, RIAGENDR, 1 for male and 2 for female), and the
examination data include bmi(body mass index, variable BMXBMI). There
are
All of the simulation study and the case study for this paper were done in R. Separate code files are provided to conduct two simulation studies and analysis on real data sets for the case study.
All of the R scripts used in this paper are available in this project.
- The folder named
codecontains all of the R scripts. - The R script
functions_common.Rcontains the R functions commonly used in the simulation studies and the case study. - The R script
functions_sim1.Rcontains the R functions used in the simulation study in Section 6 of the paper. - The R script
functions_sim2.Rcontains the R functions used in the simulation study in Section A.1 of the supplementary material. - The R script
functions_case.Rcontains the R functions used in the case study in Section 7 of the paper. - The R script
Simulation1.Rcontains the R code to perform the simulation study in Section 6 of the paper. Its results are stored inoutput/res_sim1/. - The R script
Simulation1_summary.Rcontains the R code to make Table 1 and to draw Figure 1. - The R script
Simulation2.Rcontains the R code to perform the simulation study in Section A.1 of the supplementary material. Its results are stored inoutput/res_sim2/. - The R script
Simulation2_summary.Rcontains the R code to make Table S1 and to draw Figure S1. - The R script
CaseStudy.Rcontains the R code to perform the case study in Section 7 of the paper. Its results are stored inoutput/res_case/. - The R script
CaseStudy_summary.Rcontains the R code to make Table 2 and to draw Figure S2 and S3. - The folder named
outputcontains all of the results from two simulations studies and the case study. - The subfolder named
res_sim1ofoutputcontains the results from the first simulation study. - The subfolder named
res_sim2ofoutputcontains the results from the second simulation study. - The subfolder named
res_caseofoutputcontains the results from the case study. - The subfolder named
summaryofoutputcontains all of the tables and the figures presented in the paper.