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
}
atahk/pscl documentation built on Feb. 1, 2024, 1:22 a.m.