- formula
- an S formula object, e.g. 
 Y ~ rcs(x1,5)*lsp(x2,c(10,20))
 
- data
- name of an S data frame containing all needed variables.  Omit this to use a
data frame already in the S ``search list''. 
- weights
- an optional vector of weights to be used in the fitting
          process. If specified, weighted least squares is used with
          weights - weights(that is, minimizing \(sum(w*e^2)\));
          otherwise ordinary least squares is used.
 
- subset
- an expression defining a subset of the observations to use in the fit.  The default
is to use all observations.  Specify for example - age>50 & sex="male"or- c(1:100,200:300)respectively to use the observations satisfying a logical expression or those having
row numbers in the given vector.
 
- na.action
- specifies an S function to handle missing data.  The default is the function - na.delete,
which causes observations with any variable missing to be deleted.  The main difference
between- na.deleteand the S-supplied function- na.omitis that- na.deletemakes a list
of the number of observations that are missing on each variable in the model.
The- na.actionis usally specified by e.g.- options(na.action="na.delete").
 
- method
- specifies a particular fitting method, or - "model.frame"instead to return the model frame
of the predictor and response variables satisfying any subset or missing value
checks.
 
- model
- default is - FALSE.  Set to- TRUEto return the model frame
as element- modelof the fit object.
 
- x
- default is - FALSE.  Set to- TRUEto return the expanded design matrix as element- x(without intercept indicators) of the
returned fit object.  Set both- x=TRUEif you are going to use
the- residualsfunction later to return anything other than ordinary residuals.
 
- y
- default is - FALSE.  Set to- TRUEto return the vector of response values 
as element- yof the fit.
 
- se.fit
- default is - FALSE.  Set to- TRUEto compute the estimated standard errors of
the estimate of \(X\beta\) and store them in element- se.fitof the fit.
 
- linear.predictors
- set to - FALSEto cause predicted values not to be stored
 
- penalty
- see - lrm
 
- penalty.matrix
- see - lrm
 
- tol
- tolerance for information matrix singularity 
- sigma
- If - sigmais given, it is taken as the actual root mean squared error parameter for the model.  Otherwise- sigmais estimated from the data using the usual formulas (except for penalized models).  It is often convenient to specify- sigma=1for models with no error, when using- fastbwto find an
approximate model that predicts predicted values from the full model with
a given accuracy.
 
- var.penalty
- the type of variance-covariance matrix to be stored in the - varcomponent of the fit when penalization is used.  The default is the
inverse of the penalized information matrix.  Specify- var.penalty="sandwich"to use the sandwich estimator (see below
under- var), which limited simulation studies have shown yields
variances estimates that are too low.
 
- ...
- arguments to pass to - lm.wfitor- lm.fit