# We provide access to the distributions from "arm" objects.
#' @include class_defn.R
setGeneric("dist", function(obj,index) standardGeneric("dist"))
setMethod("dist","arm", function(obj,index) obj@distributions[[index]] )
setGeneric("dist<-", function(obj,index,value) standardGeneric("dist<-"))
setMethod("dist<-","arm",
function(obj,index,value){
obj@distributions[[index]] <- value
return(obj)
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.