create_data_churn {explore} | R 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()
[Package explore version 1.3.1 Index]