mod_weights.ontram: Extract model weights

View source: R/methods.R

mod_weights.ontramR Documentation

Extract model weights

Description

Extract model weights

Usage

## S3 method for class 'ontram'
mod_weights(model)

Examples

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)

LucasKookUZH/ontram-pkg documentation built on March 27, 2023, 6:05 p.m.