R/fitted.rsf.R

Defines functions fitted.rsf

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 31, 2017, 4:51 a.m.