R/EM.R

EM = function (demand = demand, eps = 0.005) {
    res <- try(RM2:::EM_internal(demand, eps), silent = TRUE)
    if (class(res) == 'try-error') {print("Warning: All demand instances are unconstrained")} else {return(res)}
} # end EM function

Try the RM2 package in your browser

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

RM2 documentation built on May 2, 2019, 9:23 a.m.