create_data_unfair {explore} | R Documentation |
Create data unfair
Description
Artificial data that can be used for unit-testing or teaching (fairness & AI bias)
Usage
create_data_unfair(
obs = 1000,
target_name = "target_ind",
factorise_target = FALSE,
target1_prob = 0.25,
add_id = FALSE,
seed = 123
)
Arguments
obs |
Number of observations |
target_name |
Variable name of target |
factorise_target |
Should target variable be factorised? |
target1_prob |
Probability that target = 1 |
add_id |
Add an id-variable to data? |
seed |
Seed for randomization (integer) |
Value
A dataset as tibble
Examples
create_data_unfair()
[Package explore version 1.3.1 Index]