Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/predict.kerndwd.R
Predict the binary class labels or the fitted values of an kerndwd
object.
1 2 |
object |
A fitted |
kern |
The kernel function used when fitting the |
x |
The predictor matrix, i.e., the |
newx |
A matrix of new values for |
type |
|
... |
Not used. Other arguments to |
If "type"
is "class"
, the function returns the predicted class labels. If "type"
is "link"
, the result is β_0 + x_i'β for the linear case and β_0 + K_i'α for the kernel case.
Returns either the predicted class labels or the fitted values, depending on the choice of type
.
Boxiang Wang and Hui Zou
Maintainer: Boxiang Wang boxiang-wang@uiowa.edu
Wang, B. and Zou, H. (2018)
“Another Look at Distance Weighted Discrimination,"
Journal of Royal Statistical Society, Series B, 80(1), 177–198.
https://rss.onlinelibrary.wiley.com/doi/10.1111/rssb.12244
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.