distance2nnet <- function(formula, data, ...) {
require(nnet)
res <- nnet(formula, data, ...)
return(list(model = res, distance = fitted(res)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.