create_data_churn | R Documentation |
Artificial data that can be used for unit-testing or teaching
create_data_churn(
obs = 1000,
target_name = "churn",
factorise_target = FALSE,
target1_prob = 0.4,
add_id = FALSE,
seed = 123
)
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) |
A dataset as tibble
create_data_churn()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.