running 0.4.1. It's mostly looking good. Only three anomalies:
DDX_2_B has been excluded (as per https://github.com/ccb-hms/NHANES/issues/148) but there is no such table; the title had a typo, and the table that should have been excluded is DXX_2_B.
P_SSFR is missing from the DB, but that's a new release (Jan 2024), so not a problem.
OCQ_I is missing from the DB, but I see no reason for it to be:
> str(nhanes("OCQ_I"))
Error in .checkTableNames(nh_table) :
Table(s) OCQ_I missing from database
> nhanesOptions(use.db = FALSE)
> str(nhanes("OCQ_I"))
'data.frame': 6327 obs. of 14 variables:
$ SEQN : num 83732 83733 83734 83735 83736 ...
$ OCD150 : Factor w/ 6 levels "Working at a job or business,",..: 1 4 4 2 1 4 1 4 4 4 ...
$ OCQ180 : num 60 NA NA NA 32 NA 40 NA NA NA ...
$ OCQ210 : Factor w/ 4 levels "Yes","No","Refused",..: NA NA NA 1 1 NA NA NA NA NA ...
$ OCQ260 : Factor w/ 8 levels "An employee of a private company, business, or individual for wages, salary, or commission.",..: 3 NA NA 3 5 NA 1 NA NA NA ...
$ OCD270 : num 252 NA NA 72 12 NA 5 NA NA NA ...
$ OCQ600 : Factor w/ 8 levels "Always","Usually",..: 5 NA NA 4 5 NA 5 NA NA NA ...
$ OCQ610 : num 0 NA NA 15 0 NA 0 NA NA NA ...
$ OCQ630 : num NA NA NA 1 NA NA NA NA NA NA ...
$ OCQ640 : num 0 NA NA 0 0 NA 0 NA NA NA ...
$ OCQ660 : num NA NA NA NA NA NA NA NA NA NA ...
$ OCQ380 : Factor w/ 9 levels "Taking care of house or family",..: NA 7 3 NA NA 1 NA 1 2 6 ...
$ OCD390G: Factor w/ 6 levels "Enter occupation",..: 2 1 1 1 2 1 1 1 4 1 ...
$ OCD395 : num NA 252 192 360 NA 120 6 48 NA 36 ...
I have updated
https://ccb-hms.github.io/phonto/vignettes/diagnostics-basics.html
running 0.4.1. It's mostly looking good. Only three anomalies:
DDX_2_B
has been excluded (as per https://github.com/ccb-hms/NHANES/issues/148) but there is no such table; the title had a typo, and the table that should have been excluded isDXX_2_B
.P_SSFR
is missing from the DB, but that's a new release (Jan 2024), so not a problem.OCQ_I
is missing from the DB, but I see no reason for it to be:This one needs a closer look.