lm {math} R Documentation

Fitting Linear Models

Description


do linear modelling, lm is used to fit linear models. It can be used
to carry out regression, single stratum analysis of variance and
analysis of covariance (although aov may provide a more convenient
interface for these).

Usage

lm(formula,
    data = NULL,
    weights = NULL);

Arguments

formula

a formula expression of the target expression. [as FormulaExpression]

data

A dataframe for provides the data source for doing the linear modelling.

weights

A numeric vector for provides weight value for the points in the linear modelling processing.

env

[as Environment]

Details

Authors

sciBASIC.NET

Value

this function returns data object of type lmCall.

clr value class

Examples


[Package math version 5.0.1.2389 Index]