R/ci_to_ddsc_ml.R

Defines functions ci_to_ddsc_ml

ci_to_ddsc_ml <- function(results, level) {
  ci.lower <- results[, "estimate"] +
    stats::qt(p = (1 - level) / 2, df = results[, "df"]) * results[, "SE"]
  ci.upper <- results[, "estimate"] +
    stats::qt(p = 1 - (1 - level) / 2, df = results[, "df"]) * results[, "SE"]
  CIs <- cbind(ci.lower, ci.upper)
  return(CIs)
}

Try the multid package in your browser

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

multid documentation built on June 22, 2024, 11:33 a.m.