R/getDF-methods.R

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "EL", function(object) {
  object@df
})

#' @describeIn getDF Extracts the vector of marginal degrees of freedom.
setMethod("getDF", "ELMT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the (chi-square) degrees of freedom.
setMethod("getDF", "ELT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "SummaryEL", function(object) {
  object@df
})

#' @describeIn getDF Extracts the vector of marginal degrees of freedom.
setMethod("getDF", "SummaryELMT", function(object) {
  object@df
})

#' @describeIn getDF Extracts the degrees of freedom.
setMethod("getDF", "SummaryLM", function(object) {
  object@df
})
markean/bayesELcpp documentation built on May 20, 2024, 1:05 p.m.