This study performed data analysis using the statistical software packages R version R-4.2.2 (R Foundation for Statistical Computing, Vienna, Austria) and SPSS software, version 25.0 (SPSS, Inc., Chicago, IL, USA). During data processing, first of all, we combined two consecutive NHANES cycles (2005–2006 and 2007–2008) by using the packages “haven,” “readr,” and “dplyr.” Due to missing data in the covariates, we used the package “mice” to perform multiple imputations, including five data sets after interpolation. The sample weights were then calculated as 1/2*wtmec2yr, because 4-year weights should be calculated as half of 2-year weights according to the NHANES Analytic and Reporting Guidelines. Finally, we obtained the final data after weighting the data with the package “survey.” For further analysis, we compared the distribution of baseline characteristics of the study participants, including age, gender, race, general health condition, health-related behaviors, systemic diseases, presenting visual acuity, depression, sleep duration, and sleep disorders using SPSS software. For continuous variables, mean and standard deviation (SD) were used, and for categorical variables, numbers and weighted percentages were used. Then, the t-test and the χ2 test were performed for age comparisons and categorical data comparisons. Survey-weighted logistic regression models were used to assess the relationship between vision-related functional burden and risk of sleep disorders. Odds ratio (OR) and 95% confidence intervals (CIs) were calculated. A two-sided P < 0.05 was considered statistically significant.