ols.has.const {desk}R Documentation

Check if Model has a Constant

Description

Checks if a linear model included a constant level parameter (alpha).

Usage

ols.has.const(mod)

Arguments

mod

linear model object of class "desk" or "lm".

Value

A logical value: TRUE (has contant) or FALSE (has no constant).

Examples

my.modA = ols(y ~ x, data = data.tip)
my.modB = ols(y ~ 0 + x, data = data.tip)
ols.has.const(my.modA)
ols.has.const(my.modB)


[Package desk version 1.1.1 Index]