CVs_hint: cvs_hint

CVs_hintR Documentation

cvs_hint

Description

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

Usage

CVs_hint(strata, cv)

Arguments

strata

the 'strata' dataset.

errors

the 'errors' dataset containing the current 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

Value

the new 'errors' dataset containing the changed precision constraints

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
cv <- CVs_hint(strata,errors)
cv

barcaroli/R2BEAT documentation built on Jan. 9, 2025, 8:09 a.m.