Function to derive dummy variables from the target variables: it is useful when it is necessary to differentiate the precision constraints in the different domains of interest

build_dummy_variables(frame, domain_var, initial_target_vars, cv)

Arguments

frame

the sampling frame.

domain_var

the indication of the variable that indicates the domains of interest.

initial_target_vars

a vector containing the names of the current target variables.

cv

the set of the current precision constraints

Value

a list containing: (a) the new frame with the values of the dummy variables; (b) the new target variables; (c) the new set of precision constraints