Skip to content

Commit

Permalink
ordinal
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 18, 2024
1 parent 50d510c commit c579577
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 58 deletions.
5 changes: 2 additions & 3 deletions R/methods_DirichletReg.R
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#' @rdname model_parameters.mlm
#' @export
model_parameters.DirichletRegModel <- function(model,
ci = 0.95,
bootstrap = FALSE,
iterations = 1000,
component = c("all", "conditional", "precision"),
component = "all",
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
keep = NULL,
drop = NULL,
verbose = TRUE,
...) {
component <- match.arg(component)
component <- insight::validate_argument(component, c("all", "conditional", "precision"))
if (component == "all") {
merge_by <- c("Parameter", "Component", "Response")
} else {
Expand Down
2 changes: 2 additions & 0 deletions R/methods_mlm.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#' @seealso [insight::standardize_names()] to rename
#' columns into a consistent, standardized naming scheme.
#'
#' @inheritSection model_parameters.zcpglm Model components
#'
#' @examplesIf require("brglm2", quietly = TRUE)
#' data("stemcell", package = "brglm2")
#' model <- brglm2::bracl(
Expand Down
4 changes: 2 additions & 2 deletions R/methods_ordinal.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ model_parameters.clm2 <- function(model,
ci = 0.95,
bootstrap = FALSE,
iterations = 1000,
component = c("all", "conditional", "scale"),
component = "all",
standardize = NULL,
exponentiate = FALSE,
p_adjust = NULL,
Expand All @@ -17,7 +17,7 @@ model_parameters.clm2 <- function(model,
drop = NULL,
verbose = TRUE,
...) {
component <- match.arg(component)
component <- insight::validate_argument(component, c("all", "conditional", "scale"))
if (component == "all") {
merge_by <- c("Parameter", "Component")
} else {
Expand Down
2 changes: 1 addition & 1 deletion man/model_parameters.merMod.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 79 additions & 52 deletions man/model_parameters.mlm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c579577

Please sign in to comment.