View source: R/build_one_way_model.R
build_two_way_data | R Documentation |
Build simulated data with desired properties
build_two_way_data( n_obs = 20, n_training_pts = 20, x1_name = "x1", x2_name = "x2", y_name = "Response", b0 = 1, b1 = 1, b2 = 1, b3 = 0.5, mod_sd = 1, x1_lim = c(0, 10), x2_lim = c(2000, 3000), x1_mean = NULL, x2_mean = NULL, x1_sd = NULL, x2_sd = NULL, interaction_term = TRUE, error_mean = 0.01, error_sd = 0.2, seed = NA, x1_unif = FALSE, x2_unif = FALSE )
n_training_pts |
number of points to simulate for the model residuals |
x1_name |
name of the x1 variable |
x2_name |
name of the x2 variable |
y_name |
name of the response variable |
b0 |
desired intercept parameter |
b1 |
desired x1 slope parameter for x1 |
b2 |
desired slope parameter for x2 |
b3 |
desired interaction parameter |
x1_lim |
= c(0, 10) |
x2_lim |
= c(2000, 3000), |
x1_mean |
= NULL |
x2_mean |
= NULL, |
x1_sd |
= NULL |
x2_sd |
= NULL, |
interaction_term |
whether to include an interaciton term in the model |
error_sd |
|
seed |
random seed for training data |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.