determine_weight | R Documentation |
Computes the name of the weight variable based on the information from the 'lissy_files' object, 'files_level' and 'variable_level'
determine_weight(lissy_files, variable, files_level, variable_level)
lissy_files |
A list of LIS or LWS files. |
variable |
A character string indicating the aggregate for which the indicator needs to be computed. |
files_level |
A string indicating the level of the file. Valid inputs are: 'household', 'h', 'person' or 'p'. If NULL (default), the file level will be retrived from the 'lissy_files' attributes. |
variable_level |
Level of the variable. Should be either 'household', 'h', 'person' or 'p'. If NULL (default), the function will try to guess the level of the variable. This is done by comparing the value in 'variable' with pre-set lists of variables. |
A character vector with the name of the weight variable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.