create_data_unfair: Create data unfair

View source: R/create-data.R

create_data_unfairR 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()

explore documentation built on Oct. 11, 2023, 9:07 a.m.