Skip to contents

If .data is empty an InducerLm object will be created. If .data is a Dataset object a LM model will be fitted

Usage

InducerLm(
  .data = NULL,
  formula,
  subset,
  weights,
  na.action,
  method = "qr",
  model = TRUE,
  x = FALSE,
  y = FALSE,
  qr = TRUE,
  singular.ok = TRUE,
  offset
)

Arguments

.data

data object of class Dataset.

formula

a formula that should be used for the linear model.

subset

An optional argument. A vector specifying a subset of observations that should be used for fitting the model.

weights

An optional argument. A vector of weights that should be used for fitting the model.

na.action

An optional argument. A function that specifies how to handle missing values.

method

The method which should be used for fitting. For more information see lm

model

if true model is returned

x

if true x is returned

y

if true y is returned

qr

if true the QR decomposition is returned

singular.ok

logical. If FALSE (the default in S but not in R) a singular fit is an error

offset

this can be used to specify an a priori known component to be included in the linear predictor during fitting.

Value

a InducerLm object

See also

Examples

cars.data <- Dataset(data = cars, target = "dist")
inducer <- InducerLm()