lm_group: Extended lm function by adding group functionality

lm_groupR Documentation

Extended lm function by adding group functionality

Description

A generic function by adding grouping functionality in lm function.

Usage

lm_group(formula, data, groupBy, ...)

## S4 method for signature 'character,data.table,character'
lm_group(formula, data, groupBy, ...)

## S4 method for signature 'character,data.table,missing'
lm_group(formula, data, groupBy, ...)

Arguments

formula

character, Linear model formula.

data

data.table, The data used for the models.

groupBy

character, Specifies variables that used for the group.

...

see lm for the rest arguments.

Value

A list of regression analyses results

Author(s)

Yong Luo

See Also

lm


bcgov/FAIBBase documentation built on June 19, 2024, 11:57 p.m.