R/helper_update_sample.R

Defines functions update_sample.mstcar_update_rho update_sample.mstcar update_sample.mcar update_sample.car update_sample

update_sample <- function(RSTr_obj) {
  UseMethod("update_sample")
}

#' @export
update_sample.car <- function(RSTr_obj) {
  RSTr_obj <- update_lambda(RSTr_obj)
  update_Z(RSTr_obj)
  update_tau2(RSTr_obj)
  update_beta(RSTr_obj)
  update_sig2(RSTr_obj)
  RSTr_obj
}

#' @export
update_sample.mcar <- function(RSTr_obj) {
  RSTr_obj <- update_lambda(RSTr_obj)
  update_Z(RSTr_obj)
  update_tau2(RSTr_obj)
  update_beta(RSTr_obj)
  update_G(RSTr_obj)
  RSTr_obj
}

#' @export
update_sample.mstcar <- function(RSTr_obj) {
  RSTr_obj <- update_lambda(RSTr_obj)
  update_Z(RSTr_obj)
  update_tau2(RSTr_obj)
  update_beta(RSTr_obj)
  update_G(RSTr_obj)
  update_Ag(RSTr_obj)
  RSTr_obj
}

#' @export
update_sample.mstcar_update_rho <- function(RSTr_obj) {
  RSTr_obj <- update_lambda(RSTr_obj)
  update_Z(RSTr_obj)
  update_tau2(RSTr_obj)
  update_beta(RSTr_obj)
  update_G(RSTr_obj)
  update_Ag(RSTr_obj)
  update_rho(RSTr_obj)
  RSTr_obj
}

Try the RSTr package in your browser

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

RSTr documentation built on Jan. 31, 2026, 9:07 a.m.