Description Usage Arguments Value Examples
Simulate some data to test the tree on. The resulting dataframe will have multiple factorial predictors (1/0), named "pred1", "pred2", ... and a continuous outcome variable named "out".
1 | simdata(n_obs, n_vars, predictors = "factor", output = "cont")
|
n_obs |
number of observations, i.e. number of rows in the dataframe |
n_vars |
number of variables, i.e. total number of columns in the dataframe (including the outcome!) |
predictors |
predictor type ("factor" by default) – TO BE EXTENDED! |
output |
output variable type ("cont" by default) – TO BE EXTENDED! |
a dataframe with multiple predictors and a single outcome variable
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.