Learn R Programming

HRTnomaly (version 25.2.25)

toy: Toy dataset

Description

Synthetically produced data are provided to test the FuzzyHRT algorithm.

Usage

data(toy)

Arguments

Format

The toy data is a data.frame object consisting of 9265 synthetic records and 5 variables:

strata

a numeric value of the strata

unit_id

a character string with the record ID

master_varname

a character string with the names of the variables

current_value_num

a numeric value with the current synthetic observation

pred_value

a numeric value with the previously synthetic observation

Examples

Run this code
# Load the package
library(HRTnomaly)
set.seed(2025L)
# Load the toy dataset
data(toy)
# Detect cellwise outliers
res <- fuzzyHRT(toy)

Run the code above in your browser using DataLab