plGetModel: Retrieves a linear model, if possible.

Description Usage Arguments Value

View source: R/AllGenerics.R

Description

Retrieves a linear model, if possible.

Usage

1
plGetModel(x, y, no.intercept = T, tryrobust = F)

Arguments

x

a numeric vector containing the independent variable.

y

a numeric vector of same length as x, containing the dependent variable.

no.intercept

logical, indicating whether to disable the intersect in the linear model (defaults TRUE, i.e. models must go through the origin)

tryrobust

logical, indicating whether to try to fit a robust linear model (see rlm) instead of a normal one.

Value

Returns the linear model, if the fit was possible, NA otherwise.


plger/RNAontheBENCH documentation built on May 25, 2019, 8:22 a.m.