PING  0.9
Statistical data handling and processing in production environment
var_est_data_prep_cond

Create the static conditions that can be used in the macro %var_est_data_prep for the different sampling techniques.

%var_est_data_prep_cond(smpl =, cty_var =, wght_var=,
strt_var=, srs_sos_clstr_var =, sts_clstr_var = );

Arguments

  • smpl : 3 character length string defining the sampling techniques:
    • srs - simple random sampling,
    • sos - stratified one-stage sampling,
    • sts - stratified two-stage sampling;
  • cty_var : the name of the column in the input dataset which contains the country codes;
  • wght_var : the name of the column in the input dataset which contains the weight information;
  • strt_var : the name of the column in the input dataset which contains the strata information for the sos and sts sampling;
  • srs_sos_clstr_var : the name of the column in the input dataset which contains the cluster information for the srs and sos sampling;
  • sts_clstr_var : the name of the column in the input dataset which contains the cluster information for the sts sampling.

Returns

A string containing the correct variables as strata and cluster for the list of countries based on the sampling type.

Examples

Run for instance:

%var_est_data_prep_cond(smpl = srs , cty_var = DB020, wght_var= RB050a, srs_sos_clstr_var = DB030);

See also

%var_est_data_prep.