# =============================================================================
# Get Pooled Parameters
# earlycapistran@comunidad.unam.mx - July 2020
# =============================================================================
#' @title Get Pooled Parameters
#'
#' @description Extracts pooled parameter estimates from a 'mipo' object.
#'
#' @param mipo A 'mipo' object generated by 'mice'
#' @return list
#' @export
#' @usage
#' getPooledParams(mipo)
#'
#' @importFrom mice is.mipo
getPooledParams <- function(mipo) {
if (!is.mipo(mipo))
stop("The object must have class 'mipo'")
a <-mipo$pooled$estimate[1]
b <- mipo$pooled$estimate[2]
result <- list(a=a, b=b)
return(result)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.