View source: R/build_one_way_model.R
build_two_way_model | R Documentation |
Parameterize a linear function from a point and slope
build_two_way_model( n_training_pts = 20, x1_name = "x1", x2_name = "x2", y_name = "Response", b0 = 1, b1 = 1, b2 = 1, b3 = 0.5, interaction_term = TRUE, seed = NA, mod_sd = 1 )
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 |
interaction_term |
whether to include an interaciton term in the model |
seed |
random seed for training data |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.