R/texmex_methods.R

Defines functions vcov.evmOpt nobs.evmOpt

# nobs and vocv methods for class "evmOpt"
# (texmex already has coef and logLik methods)

#' @export
nobs.evmOpt <- function(object, ...) {
  return(length(object$data$y))
}

#' @export
vcov.evmOpt <- function(object, ...) {
  vc <- object$cov
  par_names <- names(coef(object))
  dimnames(vc) <- list(par_names, par_names)
  return(vc)
}

Try the lax package in your browser

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

lax documentation built on Sept. 3, 2023, 1:07 a.m.