g.range: Range of g-weights

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Computes the range of the ratios between calibrated weights and direct weights (g-weights) for the original sample and all its replicates.

Usage

1
g.range(cal.deskott)

Arguments

cal.deskott

Object of class kott.cal.design.

Details

This function computes, for the original sample and all its replicates, the smallest interval which contains the ratios between calibrated weights and direct weights.

Value

A data.frame object.

Author(s)

Diego Zardetto

See Also

kottcalibrate for calibrating replicate weights and bounds.hint to obtain an hint for calibration problems where range restrictions are imposed on the g-weights.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(data.examples)

# Creation of a kott.design object:
kdes<-kottdesign(data=example,ids=~towcod+famcod,strata=~SUPERSTRATUM,
      weights=~weight,nrg=15)

# Calibration:
kdescal04p<-kottcalibrate(deskott=kdes,df.population=pop04p,
            calmodel=~x1+x2+x3-1,partition=~regcod,calfun="logit",
            bounds=bounds,aggregate.stage=2)

# Computation of g-weights range:
g.range(kdescal04p)

DiegoZardetto/EVER documentation built on April 8, 2021, 1:05 p.m.