| g.range {EVER} | R Documentation |
Computes the range of the ratios between calibrated weights and direct weights (g-weights) for the original sample and all his replicates.
g.range(cal.deskott)
cal.deskott |
Object of class kott.cal.design. |
This function computes, for the original sample and all his replicates, the smallest interval which contains the ratios between calibrated weights and direct weights.
A data.frame object.
Diego Zardetto
kottcalibrate for calibrating replicate weights.
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)