R/methods_BayesX.R

Defines functions p_value.bayesx ci.bayesx standard_error.bayesx

#' @export
standard_error.bayesx <- function(model, ...) {
  .data_frame(
    Parameter = insight::find_parameters(model, component = "conditional", flatten = TRUE),
    SE = model$fixed.effects[, 2]
  )
}


#' @export
ci.bayesx <- function(x, ci = 0.95, ...) {
  .ci_generic(model = x, ci = ci, dof = Inf, component = "conditional", ...)
}


#' @export
p_value.bayesx <- function(model, ...) {
  .data_frame(
    Parameter = insight::find_parameters(model, component = "conditional", flatten = TRUE),
    p = model$fixed.effects[, 4]
  )
}

Try the parameters package in your browser

Any scripts or data that you put into this service are public.

parameters documentation built on Nov. 2, 2023, 6:13 p.m.