build_one_way_model: Create a fitted on-way lm object with desired parameters

View source: R/build_one_way_model.R

build_one_way_modelR Documentation

Create a fitted on-way lm object with desired parameters

Description

Builds a one-way linear model that you can use for predicting new data values with desired properties.

Usage

build_one_way_model(
  n_training_pts = 20,
  x_name = "Explanatory",
  y_name = "Response",
  b0 = 1,
  b1 = 1,
  seed = NA,
  mod_sd = 1
)

Arguments

n_training_pts

number of points to simulate for the model residuals

x_name

name of the predictor variable

y_name

name of the response variable

b0

desired intercept parameter

b1

desired x1 slope parameter for x1

seed

random seed for training data

desired

standard deviation of the residuals


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