R/EMMax.p.R

EMMax.p <-
function(Z, w, p, ptype) {
  switch(ptype,
    p.free  = apply(Z,2,weighted.mean, w),  # estimate free p's by taking the average per columns over all samples
    p.fixed = p,                            # p's are fixed
    p.HW    = EMMax.p.HW(Z,w),              # HW
    p.part  = apply(Z,2,weighted.mean, w) ) # if ptype=4: partly fixed ===> nog aanpassen, voor geval dat pi=0
}

Try the fitTetra package in your browser

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

fitTetra documentation built on May 2, 2019, 3:52 p.m.