mod_weights.ontram | R Documentation |
Extract model weights
## S3 method for class 'ontram'
mod_weights(model)
data("wine", package = "ordinal")
fml <- rating ~ temp + contact
x_train <- model.matrix(fml, data = wine)[, -1L]
y_train <- model.matrix(~ 0 + rating, data = wine)
mo <- ontram_polr(x_dim = ncol(x_train), y_dim = ncol(y_train))
mod_weights(mo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.