new_LinRegProblem: Construct a LinRegProblem Instance

View source: R/LinRegProblem.R

new_LinRegProblemR Documentation

Construct a LinRegProblem Instance

Description

Construct a LinRegProblem Instance

Usage

new_LinRegProblem(
  X,
  Y,
  add_intercept = TRUE,
  X_transform = identity,
  Y_transform = identity
)

Arguments

X

An n \times m design matrix, optionally with an intercept column present.

Y

An n-length vector or n \times 1 matrix representing the response.

add_intercept

Logical. Should an intercept column (a column of 1s) be added to X?

X_transform

One-argument transformation function to apply to X before fitting the model. Defaults to identity.

Y_transform

One-argument transformation function to apply to Y before fitting the model. Defaults to identity.

Details

This is the constructor function for the LinRegProblem class. Users should not use this function and should instead call LinRegProblem.

Value

A LinRegProblem object.


ryan-heslin/RegLesson documentation built on Aug. 5, 2022, 9:03 p.m.