R/fitted.rsf.R

fitted.rsf <-
function(object, type=c("all", "used", "avail"), ...)
{
    type <- match.arg(type)
    switch(type,
        all = object$fitted.values,
        used = object$fitted.values[object$y==1],
        avail = object$fitted.values[object$y==0])
}

Try the ResourceSelection package in your browser

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

ResourceSelection documentation built on May 2, 2019, 6:29 p.m.