Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jul 9, 2024
1 parent 8bb3391 commit c89147d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions R/convert_bayesian_to_frequentist.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ convert_bayesian_as_frequentist <- function(model, data = NULL, REML = TRUE) {
}

fixed_formula <- paste(as.character(formula$conditional)[c(2, 1, 3)], collapse = " ")
cond_formula <- stats::as.formula(paste(
fixed_formula, random_formula,
sep = " + "
))

cond_formula
stats::as.formula(paste(fixed_formula, random_formula, sep = " + "))
}

#' @rdname convert_bayesian_as_frequentist
Expand Down

0 comments on commit c89147d

Please sign in to comment.