Builds a configuration list that specifies data paths, design variables, and report parameters for the STEPS pipeline.
steps_config(
data_path,
country_name = "Country Name",
survey_year = 2024,
age_min = 18,
age_max = 69,
weight_var = "wt_final",
strata_var = "stratum",
cluster_var = "psu",
bp_sbp_threshold = 140,
bp_dbp_threshold = 90,
bmi_overweight = 25,
bmi_obese = 30,
glucose_threshold = 7,
glucose_impaired_threshold = 6.1,
chol_threshold = 5
)Path to raw STEPS data file (CSV or Excel).
Country name for reports (default "Country Name").
Survey year (default 2024).
Minimum age (default 18).
Maximum age (default 69).
Weight variable name (default "wt_final", set NULL if none).
Strata variable name (default "stratum", set NULL if none).
Cluster variable name (default "psu", set NULL if none).
SBP threshold for raised BP (default 140).
DBP threshold for raised BP (default 90).
BMI threshold for overweight (default 25.0).
BMI threshold for obesity (default 30.0).
Fasting glucose threshold in mmol/L (default 7.0).
Impaired fasting glucose threshold in mmol/L (default 6.1).
Total cholesterol threshold in mmol/L (default 5.0).
A list with elements:
data_path: Input file path
country_name: Country name
survey_year: Survey year
age_min, age_max: Age range
weight_var, strata_var, cluster_var: Design variable names
Threshold parameters for BP, BMI, glucose, cholesterol
if (FALSE) { # \dontrun{
cfg <- steps_config("data/steps_2023.csv", "Senegal", 2023)
cfg <- steps_config("data/steps.csv", "Mongolia", 2019,
bp_sbp_threshold = 130, bp_dbp_threshold = 80)
} # }