R/GH.theta.R

Defines functions GH.theta

Documented in GH.theta

#' Compute Gumbel Copula Parameter from Kendall's Tau
#'
#' Computes the Gumbel-Hougaard copula dependence parameter based on Kendall's tau.
#'
#' @param tau Numeric, Kendall's tau correlation coefficient.
#' @return Numeric, estimated Gumbel copula parameter.
#' @importFrom rootSolve uniroot.all
#' @export
GH.theta <- function(tau){
  GH.tau <- function(theta){1 - (1/theta) - tau}
  theta_gum <- rootSolve::uniroot.all(GH.tau, c(1, 100))
  return(theta_gum)
}

Try the STCCGEV package in your browser

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

STCCGEV documentation built on April 4, 2025, 1:50 a.m.