Description Usage Arguments Value Author(s) References See Also Examples

Suppose that we have training data observations x (of dimension nxp) with an associated binary outcome vector y of length n, and that TrainSuperMDS has already been run on the training observations. Furthermore, we have test observations xte (of dimension mxp) for which we do not have an outcome vector. This function will predict the class of the test observations, and also to compute configuration points for the test observations.

1 | ```
TestSuperMDS(trout, xte = NULL, dtetr = NULL)
``` |

`trout` |
The output of a call to TrainSuperMDS on the training data. We assume that there were n training observations which were either passed into TrainSuperMDS as a nxn dissimilarity matrix, or as a nxp dat matrix. |

`xte` |
The test observations, a matrix of dimension mxp. If this is NULL then must pass in dtetr. Can pass in xte only if previously passed in x when TrainSuperMDS was called. Otherwise, pass in dtetr instead. |

`dtetr` |
A mxn data matrix with the dissimilarity between each test observation and each training observation; if NULL then must pass in xte. |

`ytehat` |
Predicted class labels for test data. |

`zte` |
Predicted configuration points for test data; should be a matrix of dimension mxS where S is the dimension of training configuration points. |

Daniela M Witten

Witten and Tibshirani (2011) Supervised multidimensional scaling for visualization, classificatoin, and bipartite ranking. CSDA.

1 | ```
# Try ?superMDS for examples.
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.