Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hypertension definitions in app versus PMID 35616029 #39

Open
bcjaeger opened this issue Nov 4, 2022 · 0 comments
Open

Hypertension definitions in app versus PMID 35616029 #39

bcjaeger opened this issue Nov 4, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@bcjaeger
Copy link
Collaborator

bcjaeger commented Nov 4, 2022

Comparing the number of participants in our data versus Figure S1 of PMID 35616029, I see some minor differences. In the reproducible example below, I find we have the same number of participants overall but different numbers with hypertension.

library(cardioStatsUSA)
library(magrittr)
library(data.table)

data_app <- nhanes_data %>% 
 .[svy_subpop_htn == 1] %>% 
 .[svy_year %in% c( "2009-2010", 
                    "2011-2012", 
                    "2013-2014",
                    "2015-2016", 
                    "2017-2020")] %>% 
 .[demo_pregnant == 'No' | is.na(demo_pregnant)]

# Number of observations (unweighted); comparison to PMID = 35616029
nrow(data_app) # = 30,311 in Figure S1 
#> [1] 30311
nrow(data_app[htn_jnc7 == 'Yes']) # = 11,007 in Figure S1 
#> [1] 11017
nrow(data_app[htn_accaha == 'Yes']) # = 15,100 in Figure S1
#> [1] 15027

Created on 2022-11-04 with reprex v2.0.2

These differences are small and do not prevent us from replicating results in the paper, but I think it would be good to note why they occur. @pmuntner, do you have any thoughts on this?

@bcjaeger bcjaeger added bug Something isn't working documentation Improvements or additions to documentation and removed bug Something isn't working labels Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant