my_lm: Fitting Linear Model function

Description Usage Arguments Value Examples

View source: R/my_lm.R

Description

This function is used to fit linear models. It can be used to carry out regression, single stratum analysis of variance and analysis of covariance.

Usage

1
my_lm(fnc, data)

Arguments

fnc

An object of class "formula": a symbolic description of the model to be fitted.

data

An optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model.

Value

Numeric represrnting the coefficients and statistics of the fitting

Examples

1
my_model <- my_lm(Sepal.Length~Sepal.Width, data = my_iris)

Xiaoying-Z/Stat302Project03 documentation built on March 22, 2020, 2:09 a.m.