modifyDataset {qape} | R Documentation |
Modification of the values of the variables in the dataset
Description
The function modifies the values of the declared variables used in the random part of the model if they are not unique. Unique values of the variables are required to build correct Z matrix for unsampled population elements.
Usage
modifyDataset(data, names)
Arguments
data |
the population dataset. |
names |
the vector of names of the dataset columns which values should be modified (names of the variables used to define the random part of the model). |
Value
The dataset with modified values of the declared variables.
Author(s)
Tomasz Zadlo
Examples
data(realestData)
# some values of "NUTS2" and "NUTS4type" are the same - we will modify them:
modifyDataset(realestData, c("NUTS2", "NUTS4type"))
[Package qape version 2.1 Index]