| Arguments | In (default) | Description
|
|---|
| mXt | n x T matrix | matrix of predictors (data in rows)
|
| vY | 1 x T matrix | vector of response
|
| mWeights | empty or 1 x T matrix (all 1) | vector of weights to be given to individual
observations in the sum of squared residuals that
forms the local fitting criterion.
By default, an unweighted fit is carried out.
If supplied, weights should be a non-negative
numeric vector. If the different observations
have non-equal variances, weights should be
inversely proportional to the variances.
|
| dSpan | double (0.75) | smoothing parameter
|
| iDegree | 1,(2) | overall degree of locally-fitted polynomial. 1 is
locally-linear fitting and 2 is locally-quadratic
fitting.
|
| fNormalize | FALSE,(TRUE) | determines if numeric predictors should
be normalized. If TRUE (1) - the default - the
standard normalization is used. If FALSE (0), no
normalization is carried out.
|
| aiParametric | empty or 1 x p matrix (all FALSE) | for two or more numeric predictors, this argument
specifies those variables that should be
conditionally-parametric. The argument should be a
logical vector of length p, specified in the order
of the predictor group ordered in x.
Default is a vector of 0's of length p
|
| aiDrop_square | empty or 1 x p matrix (all FALSE) | for cases with degree = 2, and with two or more
numeric predictors, this argument specifies those
numeric predictors whose squares should be dropped
from the set of fitting variables. The method of
specification is the same as for parametric.
Default is a vector of 0's of length p.
|
| sFamily | string ("gaussian") | the assumed distribution of the errors. The values
are "gaussian" or "symmetric". The first value is
the default. If the second value is specified,
a robust fitting procedure is used.
|
| sSurface | string ("interpolate") | determines whether the fitted surface is computed
directly at all points ("direct") or whether an
interpolation method is used ("interpolate").
The latter, the default, is what most users should
use unless special circumstances warrant.
|
| sStatistics | string ("approximate") | determines whether the statistical quantities are
computed exactly ("exact") or approximately
("approximate"). The latter is the default. The former
should only be used for testing the approximation in
statistical development and is not meant for routine
usage because computation time can be horrendous.
|
| dCell | double (0.2) | if interpolation is used to compute the surface, this
argument specifies the maximum cell size of the k-d
tree. Suppose k = floor(n*cell*span) where n is the
number of observations. Then a cell is further
divided if the number of observations within it
is greater than or equal to k.
|
| sTrace_hat | string ("wait.to.decide") | when surface is "approximate", determines the
computational method used to compute the trace of
the hat matrix, which is used in the computation of
the statistical quantities. If "exact", an exact
computation is done; normally this goes quite fast
on the fastest machines until n, the number of
observations is 1000 or more, but for very slow
machines, things can slow down at n = 300.
If "wait.to.decide" is selected, then a default
is chosen in loess(); the default is "exact" for
n < 500 and "approximate" otherwise. If surface
is "exact", an exact computation is always done
for the trace. Set trace_hat to "approximate" for
large dataset will substantially reduce the
computation time.
|
| iIterations | integer (4) | if family is "symmetric", the number of iterations
of the robust fitting method. Default is 0 for
family being "gaussian" by default.
|