R/calc_maternal_bw.R

Defines functions calc_maternal_bw

Documented in calc_maternal_bw

#' Calculate maternal body weight
#' 
#' This function initializes the parameters needed in the functions
#' solve_fetal_pbtk by calling solve_pbtk and adding additional parameters.
#' 
#'   BW <- params$pre_pregnant_BW + 
#'    params$BW_cubic_theta1 * tw + 
#'    params$BW_cubic_theta2 * tw^2 + 
#'    params$BW_cubic_theta3 * tw^3
#'
#' @param week Gestational week
#'
#' @return \item{BW}{Maternal Body Weight, kg.}
#'
#' @references
#' Kapraun, Dustin F., et al. "Empirical models for anatomical and physiological 
#' changes in a human mother and fetus during pregnancy and gestation." 
#' PloS one 14.5 (2019): e0215906.
#'
#' @keywords Parameter
#' 
#' @author John Wambaugh
#' 
#' @export calc_maternal_bw
calc_maternal_bw <- function(
  week = 12)
{
  return(calc_fetal_phys(week)$BW)
}

Try the httk package in your browser

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

httk documentation built on March 7, 2023, 7:26 p.m.