modifyDataset: Modification of the values of the variables in the dataset

View source: R/modifyDataset.R

modifyDatasetR 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")) 

qape documentation built on Aug. 21, 2023, 5:07 p.m.

Related to modifyDataset in qape...