"applyWeightingModel" <-
function(model) {
if (length(model@weightpar) > 0 || length(model@weightList) > 0) {
w <- weightPsi(model)
model@weight <- TRUE
model@psi.weight <- w$psi.weight
model@weightM <- w$weight
} else {
model@psi.weight <- model@psi.df
}
model
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.