create_data_churn: Create data churn

View source: R/create-data.R

create_data_churnR Documentation

Create data churn

Description

Artificial data that can be used for unit-testing or teaching

Usage

create_data_churn(
  obs = 1000,
  target_name = "churn",
  factorise_target = FALSE,
  target1_prob = 0.4,
  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_churn()

explore documentation built on Sept. 11, 2024, 7:40 p.m.