R/expect_M_x.R

Defines functions expect_M_x

expect_M_x <- function(psi, delta_1, mu) {
  res <- sum(psi * (1 - expit(delta_1)) * expit(mu))
  return(res)
}

Try the MarZIC package in your browser

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

MarZIC documentation built on June 8, 2025, 10:15 a.m.