The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This vignette demonstrates how to fit an ordinal regression model
with plssem using the titanic dataset.
In plssem, regression-style model syntax like
y ~ x1 + x2 is supported. When the dependent variable
(and/or predictors) are ordinal. Ordinal variables can be supplied via
the ordered argument, or by making sure they are
ordered in the dataset.
This model predicts survival as a function of age and sex.
m_linear <- "Survived ~ Age + Female"
fit_linear <- pls(
m_linear,
data = titanic,
ordered = "Survived",
boot.R = 50,
bootstrap = TRUE,
boot.parallel = "multicore",
boot.ncores = 2
)
summary(fit_linear)Optional: evaluate predictive performance.
To include a non-linear (interaction) effect, add an interaction
term. With ordinal indicators and interactions, plssem
automatically switches to the Monte-Carlo ordinal PLSc estimator.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.