R/inherit_methods.R

Defines functions is.HazardShape is.EmpiricalTTT is.maxlogL

Documented in is.EmpiricalTTT is.HazardShape is.maxlogL

#' Is return of any object of \code{EstimationTools}?
#'
#' @encoding UTF-8
#' @author Jaime Mosquera GutiƩrrez \email{jmosquerag@unal.edu.co}
#'
#' @description
#' `r lifecycle::badge("stable")`
#'
#' Checks if an object is any of the classes implemented in \code{EstimationTools}
#' package.
#'
#' @param x Any object of \code{EstimationTools}.
#'
#==============================================================================
# maxlogL function identification ---------------------------------------------
#==============================================================================
#' @export
is.maxlogL <- function(x){
  inherits(x, c("maxlogL"))
}
#==============================================================================
# EmpiricalTTT function identification ----------------------------------------
#==============================================================================
#' @export
#' @rdname is.maxlogL
is.EmpiricalTTT <- function(x){
  inherits(x, c("EmpiricalTTT"))
}
#==============================================================================
# EmpiricalTTT function identification ----------------------------------------
#==============================================================================
#' @export
#' @rdname is.maxlogL
is.HazardShape <- function(x){
  inherits(x, c("HazardShape"))
}

Try the EstimationTools package in your browser

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

EstimationTools documentation built on Dec. 10, 2022, 9:07 a.m.