build_two_way_model: Parameterize a linear function from a point and slope

View source: R/build_one_way_model.R

build_two_way_modelR Documentation

Parameterize a linear function from a point and slope

Description

Parameterize a linear function from a point and slope

Usage

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
)

Arguments

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


michaelfrancenelson/mfn.teaching.utils documentation built on Oct. 7, 2022, 1:13 a.m.