R/clayton.theta.R

Defines functions clayton.theta

Documented in clayton.theta

#' Compute Clayton Copula Parameter from Kendall's Tau
#'
#' Computes the Clayton copula dependence parameter based on Kendall's tau.
#'
#' @param tau Numeric, Kendall's tau correlation coefficient.
#' @return Numeric, estimated Clayton copula parameter.
#' @importFrom rootSolve uniroot.all
#' @export
clayton.theta <- function(tau){
  clayton.tau <- function(theta){(theta / (theta + 2)) - tau}
  theta_clayton <- rootSolve::uniroot.all(clayton.tau, c(0, 100))
  return(theta_clayton)
}

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.