glm {math} |
R Documentation |
Fitting Generalized Linear Models
Description
glm is used to fit generalized linear models, specified by
giving a symbolic description of the linear predictor and
a description of the error distribution.
Usage
glm(formula, family, data);
Arguments
formula
an object of class "formula" (Or one that can be coerced to
that class): a symbolic description Of the model To be fitted.
The details Of model specification are given under 'Details’. [as FormulaExpression]
family
a description of the error distribution and link function to
be used in the model. For glm this can be a character string
naming a family function, a family function or the result of
a call to a family function. For glm.fit only the third option
is supported. (See family for details of family functions.)
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. If not found in data, the variables are taken from
environment(formula), typically the environment from which glm
is called.
env
[as Environment]
Details
Authors
sciBASIC.NET
Value
this function returns data object of type
any kind.
clr value class
Examples
[Package
math version 5.0.1.2389
Index]