Summarize an NHANES design
nhanes_design_summarize.Rd
Summarize an NHANES design
Arguments
- x
[nhanes_design]
an NHANES design object. See nhanes_design for more details.
- outcome_stats
[character(1+)]
The statistics that should be computed. Multiple statistics may be requested. Valid options depend on the type of outcome to be summarized. For continuous outcomes, valid options include
'mean': estimates the mean value of the outcome
'quantile': estimates 25th, 50th, and 75th percentile of the outcome.
For categorical outcomes, valid options include
'percentage': estimates the prevalence of the outcome
'percentage_kg': estimates the prevalence and uses Korn and Graubard's method to estimate a 95% confidence interval
'count': estimates the number of US adults with the outcome.
- simplify_output
[logical(1)]
The type of output returned will be nhanes_design if
simplify_output
isFALSE
and adata.table
otherwise.
Value
if simplify_output
is TRUE
, a data.table
.
Otherwise, an nhanes_design object is returned.