Skip to content

Commit f1cc5cd

Browse files
committed
fix
1 parent e31fde8 commit f1cc5cd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

R/methods_modelbased.R

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ model_parameters.estimate_contrasts <- model_parameters.estimate_means
1919
#' @export
2020
standard_error.estimate_means <- function(model, ...) {
2121
params <- insight::get_parameters(model)
22-
data.frame(
23-
Parameter = params$Parameter,
24-
SE = model$SE,
25-
stringsAsFactors = FALSE
26-
)
22+
data.frame(Parameter = params$Parameter, SE = model$SE, stringsAsFactors = FALSE)
2723
}
2824

2925
#' @export
@@ -36,10 +32,10 @@ standard_error.estimate_contrasts <- standard_error.estimate_means
3632
# ci ----------------
3733

3834
#' @export
39-
ci.estimate_means <- function(model, ...) {
40-
params <- insight::get_parameters(model)
35+
ci.estimate_means <- function(x, ...) {
36+
params <- insight::get_parameters(x)
4137

42-
ci_value <- attributes(model)$ci
38+
ci_value <- attributes(x)$ci
4339
if (is.null(ci_value)) {
4440
ci_value <- 0.95
4541
}

0 commit comments

Comments
 (0)