R/classes.R

setClass("PInt", representation(interval = "numeric",
                                sample = "numeric",
                                level = "numeric",
                                alternative = "character"))


setClass("PredInterval", representation(m = "numeric",
                                        k = "numeric"),
         contains="PInt")
setClass("NormalPredInterval", representation(quantile = "numeric"),
         contains="PredInterval")
setClass("nparPredInterval", contains="PredInterval")


setClass("PrecInterval", representation(m = "numeric"),
         contains="PInt")
setClass("NormalPrecInterval", contains="PrecInterval")
setClass("nparPrecInterval", contains="PrecInterval")

setClass("PIlm", representation(prediction = "data.frame", 
                                newdata = "data.frame",
                                model = "lm",
                                k = "numeric",
                                level = "numeric",
                                alternative = "character"))

Try the predIntervals package in your browser

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

predIntervals documentation built on May 31, 2017, 1:39 a.m.