setDesignW: 'setDesignW' sets the design weight(s) for each variable and...

Description Usage Arguments Value Examples

Description

setDesignW sets the design weight(s) for each variable and for each statistical unit

Usage

1
2
3
4
setDesignW(object) <- value

## S4 replacement method for signature 'contObsPredModelParam,data.table'
setDesignW(object) <- value

Arguments

object

Object of class contObsPredModelParam containing the statistical units whose design weights are to be computed.

Param

data.table with the design weigths for each variable and each statistical unit.

Value

Object of class contObsPredModelParam with the design weights.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 

load('C:/FDStQList.RData')
load('C:/FGStQList.RData')
FD <- FD.StQList[['MM112016']]
FDList <- FD.StQList[-11]
ObsPredPar <- new(Class = 'contObsPredModelParam',
                  Data = FG,
                  VarRoles = list(Units = 'NOrden', Domains = 'Tame_05._4.'))
Weights <- StQ::dcast_StQ(ObsPredPar@Data)[, 'NOrden', with = FALSE][, Personal_07.__2.__ := 1][, CifraNeg_13.___ := 1]
setDesignW(ObsPredPar) <- Weights


## End(Not run)

david-salgado/contObsPredModelParam documentation built on Nov. 7, 2019, 5:45 p.m.