new_xor_variables {msu}R Documentation

Create a set of categorical variables using the logical XOR operator.

Description

Create a set of categorical variables using the logical XOR operator.

Usage

new_xor_variables(n_variables = 2, n_instances = 1000, noise = 0)

Arguments

n_variables

An integer as the number of variables to be created. It is the number of column variables of the table, an additional column is added as a result of the XOR operator over the instances.

n_instances

An integer as the number of instances to be created. It is the number of rows of the table.

noise

A float number as the noise level for the variables.

Value

A set of random variables constructed using the logical XOR operator.

Examples

new_xor_variables(2, 4, 0)
new_xor_variables(5, 10, 0.5)

[Package msu version 0.0.1 Index]