Function to propose a convenient set of precision constraints, given the different variability of target variables Ys in the strata

CVs_hint(strata, cv)

Arguments

strata

the 'strata' dataset.

errors

the 'errors' dataset containing the current precision constraints.

Value

the new 'errors' dataset containing the changed precision constraints

Details

The function requires in input the 'strata' dataset, plus an initial set of precision constraints. It is suggested to define a 'neutral' set, i.e. equal CVs for all variable, possibly differentiated only with regard to the different domain levels

Examples

data(beat.example)
errors[1,c(2:3)] <- c(0.03,0.03)
errors[2,c(2:3)] <- c(0.03,0.03)
errors
#>    DOM  CV1  CV2
#> 1 DOM1 0.03 0.03
#> 2 DOM2 0.03 0.03
cv <- CVs_hint(strata,errors)
cv
#>    DOM       CV1       CV2
#> 1 DOM1 0.1735122 0.2330671
#> 2 DOM2 0.1673358 0.2433243