Description Usage Arguments Details Value References See Also
A localized version of Quadratic Discriminant Analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | osqda(x, ...)
## S3 method for class 'formula'
osqda(formula, data, ..., subset,
na.action)
## S3 method for class 'data.frame'
osqda(x, ...)
## S3 method for class 'matrix'
osqda(x, grouping, ..., subset,
na.action = na.fail)
## Default S3 method:
osqda(x, grouping,
wf = c("biweight", "cauchy", "cosine", "epanechnikov", "exponential", "gaussian", "optcosine", "rectangular", "triangular"),
bw, k, nn.only = TRUE, method = c("unbiased", "ML"),
...)
|
formula |
A |
data |
A |
x |
(Required if no |
grouping |
(Required if no |
wf |
A window function which is used to calculate
weights that are introduced into the fitting process.
Either a character string or a function, e.g. |
bw |
(Required only if |
k |
(Required only if |
nn.only |
(Required only if |
method |
Method for scaling the pooled weighted
covariance matrix, either |
... |
Further arguments. |
subset |
An index vector specifying the cases to be used in the training sample. (NOTE: If given, this argument must be named.) |
na.action |
A function to specify the action to be
taken if NAs are found. The default action is first the
|
The name of the window function (wf
) can be
specified as a character string. In this case the window
function is generated internally in predict.osqda
.
Currently supported are "biweight"
,
"cauchy"
, "cosine"
, "epanechnikov"
,
"exponential"
, "gaussian"
,
"optcosine"
, "rectangular"
and
"triangular"
.
Moreover, it is possible to generate the window functions
mentioned above in advance (see
wfs
) and pass them to
osqda
.
Any other function implementing a window function can
also be used as wf
argument. This allows the user
to try own window functions. See help on
wfs
for details.
If the predictor variables include factors, the formula interface must be used in order to get a correct model matrix.
An object of class "osqda"
, a list
containing the following components:
x |
A
|
grouping |
A |
counts |
The number of observations per class. |
lev |
The class
labels (levels of |
N |
The number of observations. |
wf |
The window function used. Always a function, even if the input was a string. |
bw |
(Only if |
k |
(Only if |
nn.only |
(Logical. Only if |
adaptive |
(Logical.)
|
method |
The method for scaling
the weighted covariance matrices, either
|
variant |
(Only
if |
call |
The (matched) function call. |
Czogiel, I., Luebke, K., Zentgraf, M. and Weihs, C. (2007), Localized linear discriminant analysis. In Decker, R. and Lenz, H.-J., editors, Advances in Data Analysis, volume 33 of Studies in Classification, Data Analysis, and Knowledge Organization, pages 133–140, Springer, Berlin Heidelberg.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.