Description Usage Arguments Details Value References See Also Examples
A localized version of Linear Discriminant Analysis.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | oslda(x, ...)
## S3 method for class 'formula'
oslda(formula, data, ..., subset, na.action)
## S3 method for class 'data.frame'
oslda(x, ...)
## S3 method for class 'matrix'
oslda(x, grouping, ..., subset, na.action = na.fail)
## Default S3 method:
oslda(x, grouping, wf = c("biweight", "cauchy", "cosine",
"epanechnikov", "exponential", "gaussian", "optcosine", "rectangular",
"triangular"), bw, k, nn.only = TRUE, method = c("unbiased", "ML"), ...)
|
x |
(Required if no |
formula |
A |
data |
A |
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 |
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. |
This is an alternative implementation of Local Linear Discriminant Analysis proposed by Czogiel et al. (2007) and
implemented in loclda
in package klaR.
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.oslda
. 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 oslda
.
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 "oslda"
, 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.
Other observation_specific lda: predict.oslda
Other observation_specific lda: predict.oslda
Other observation_specific lda: predict.oslda
Other observation_specific lda: predict.oslda
Other observation_specific lda: predict.oslda
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.