Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions R/pool_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#' pool_parameters(models, ci_method = "residual")$df_error
#' @return A data frame of indices related to the model's parameters.
#' @export
pool_parameters <- function(

Check warning on line 66 in R/pool_parameters.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/pool_parameters.R,line=66,col=1,[cyclocomp_linter] Reduce the cyclomatic complexity of this expression from 47 to at most 40. Consider replacing high-complexity sections like loops and branches with helper functions.
x,
exponentiate = FALSE,
effects = "fixed",
Expand Down Expand Up @@ -145,6 +145,16 @@
if (is.null(ci)) {
ci <- 0.95
}

if (
identical(attributes(x[[1]])$effects, "grouplevel") && "Group" %in% colnames(x[[1]])
) {
x[] <- lapply(x, function(i) {
i$Parameter <- paste(i$Parameter, i$Group)
i
})
}

parameter_values <- x[[1]]$Parameter

# exceptions ----
Expand Down
Loading