linear_model {structToolbox}R Documentation

linear model class

Description

Wrapper for R lm. See lm for details.

Usage

linear_model(formula, na_action = "na.omit", contrasts = list(), ...)

Arguments

formula

The formula to use.

na_action

The action to take when missing values are present. Can any one of 'na.omit','na.fail','na.exclude' or 'na.pass'. Default is 'na.omit'.

contrasts

The contrasts for this model. If zero length then the default contrasts are used.

...

additional slots and values passed to struct_class

Value

struct object

Examples

D = iris_DatasetExperiment()
M = linear_model(formula = y~Species)


[Package structToolbox version 1.0.1 Index]