R/mpm.R

Defines functions mpm

mpm <- function(x)
{
  if (mean(x) >= 0.5) {1}
  else {0}
}

Try the Bayenet package in your browser

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

Bayenet documentation built on April 4, 2025, 12:26 a.m.