R/inherit_methods.R

Defines functions is.optimizer.config is.HazardShape is.EmpiricalTTT is.maxlogL

Documented in is.EmpiricalTTT is.HazardShape is.maxlogL is.optimizer.config

#' 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 an object of \code{EstimationTools} package.
#'
# ==============================================================================
# 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"))
}
# ==============================================================================
# Optimizer configuration -----------------------------------------------------
# ==============================================================================
#' @export
#' @rdname is.maxlogL
is.optimizer.config <- function(x) {
  inherits(x, c("optimizer.config"))
}
Jaimemosg/EstimationTools documentation built on Oct. 23, 2023, 10 a.m.