"weightNL" <- function(temp, model, n) {
if (model@clpType == "x2") {
temp <- temp * model@weightM[, n]
}
if (model@clpType == "x") {
temp <- temp * model@weightM[n, ]
}
temp
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.