Description Usage Arguments Value Examples
setDesignW
sets the design weight(s) for each variable and for each statistical unit
1 2 3 4 | setDesignW(object) <- value
## S4 replacement method for signature 'contObsPredModelParam,data.table'
setDesignW(object) <- value
|
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. |
Object of class contObsPredModelParam with the design weights.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.