Skip to contents

Usage

ensanut

Format

Information contains: A tibble containing the following information

  • age Age of the individual (years).

  • sex Sex of the individual (Male or Female).

  • weight Survey weights associated to the survey.

  • strata Strata of the survey.

  • hypertension If individual has hypertension TRUE, FALSE otherwise.

  • delta_na_phase_1 Proposed change in sodium consumption (counterfactual).

  • systolic_blood_pressure Mean systolic blood pressure of the individual registered by survey.

  • age_group Age group of the individual

Examples

ensanut
#> # A tibble: 1,333 × 8
#>      age sex     weight strata hypertension delta_na_phase_1
#>    <dbl> <chr>    <dbl>  <dbl> <lgl>                   <dbl>
#>  1    28 Female  32134.    222 FALSE                    5.90
#>  2    24 Female  75955.    222 FALSE                   19.1 
#>  3    45 Female  16076.    222 FALSE                   49.5 
#>  4    39 Male    83463.    222 FALSE                    6.27
#>  5    41 Male    84735.    223 FALSE                    0   
#>  6    61 Male   118741.    223 FALSE                    0   
#>  7    46 Female  44085.    223 FALSE                   40.0 
#>  8    48 Female  73051.    223 FALSE                   79.4 
#>  9    23 Female  26276.    122 FALSE                   26.2 
#> 10    69 Female  52114.    122 FALSE                    8.69
#> # ℹ 1,323 more rows
#> # ℹ 2 more variables: systolic_blood_pressure <dbl>, age_group <fct>
# Create a survey design as follows:
options(survey.lonely.psu = "adjust")
design <- survey::svydesign(data = ensanut, ids = ~1, weights = ~weight, strata = ~strata)