class_docstr: Clayton copula.
  
  Dependence is greater in the negative tail than in the positive.
  
  .. math::
  
      C_\theta(u,v) = \left[ \max\left\{ u^{-\theta} + v^{-\theta} -1 ;
      0 \right\} \right]^{-1/\theta}
  
  with :math:`\theta\in[-1,\infty)\backslash\{0\}`.
class_docstr_tok: ["Clayton","copula",".","Dependence","is","greater","in","the","negative","tail","than","in","the","positive",".","..","math",":",":","C_\\theta","(","u",",","v",")","=","\\left","[","\\max\\left\\","{","u^","{","-\\theta","}","+","v^","{","-\\theta","}","-1",";","0","\\right\\","}","\\right","]","^","{","-1\/\\theta","}","with",":","math",":","`","\\theta\\in","[","-1",",","\\infty",")","\\backslash\\","{","0\\","}","`","."]
code: def rvs(self, nobs=1, args=(), random_state=None):
      rng = check_random_state(random_state)
      (th,) = self._handle_args(args)
      x = rng.random((nobs, self.k_dim))
      v = stats.gamma(1.0 / th).rvs(size=(nobs, 1), random_state=rng)
      if self.k_dim != 2:
          rv = (1 - np.log(x) / v) ** (-1.0 / th)
      else:
          rv = self.transform.inverse(-np.log(x) / v, th)
      return rv
  
imports: import sys
  import numpy
  from scipy import stats, integrate, optimize
  from .None import transforms
  from .copulas import Copula
  from statsmodels.tools.rng_qrng import check_random_state
label_desc: Use image node_id 2 for calling the ClaytonCopula obj's underlying member method code with example usage: obj.rvs(nobs, args, random_state) and returns: rv