R/predprob.R

Defines functions predprob.ideal predprob

Documented in predprob predprob.ideal

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

predprob.ideal <- function(obj, ...){
  if(!("ideal" %in% class(obj)))
    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 31, 2023, 5:17 p.m.