Description Usage Arguments Value
Using information disaggregated at different levels recovers protected information: NAs in cells that would otherwise have values 1-4. Options to impute NA-values that cannot be perfectly recovered.
1 2 3 4 5 6 7 8 9 | recover_na(
alaluokkadata,
ylaluokkadata,
alaluokka,
ylaluokka,
muuttuja,
onlyAccurate = FALSE,
randomizeRest = FALSE
)
|
alaluokkadata |
data.frame, contains the data for which NAs are to be recovered. |
ylaluokkadata |
data.frame, contains the date on one aggregation level above. This data contains the additional information that is used to recovers NAs. |
alaluokka |
character, is the name of the aggregation class in alaluokkadata and ylaluokkadata. |
ylaluokka |
character, is the name of the aggregation class in ylaluokkadata and alaluokkadata. |
muuttuja |
character, is the name of the variable for which NAs are to be recovered. |
onlyAccurate |
logical, if TRUE, only replaces NA-values that can be recovered accurately.
Otherwise see |
randomizeRest |
logical, if TRUE, randomizes a value from 1:4 for those NA-values that cannot
be accurately recovered. If FALSE, evenly allocates the missing values as inferred from |
data.frame Output is a data.frame alaluokkadata with NAs recovered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.