R/predprob.R

Defines functions predprob.ideal predprob

Documented in predprob predprob.ideal

predprob <- function(obj, ...){
    UseMethod("predprob")
}

predprob.ideal <- function(obj, ...){
  if(!inherits(obj, "ideal"))
    stop("predprob.ideal only defined for objects of class ideal")
  else
    predict.ideal(obj,...)$pred.probs
}

Try the pscl package in your browser

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

pscl documentation built on May 29, 2024, 9:09 a.m.