IR.fun: Calculation of IR test statistic

View source: R/helpers.R

IR.funR Documentation

Calculation of IR test statistic

Description

Given the data and copula family, calculate the IR test statistic

Usage

IR.fun(u1, u2, d1, d2, copula.fam)

Arguments

u1

a vector, the first pseudo-observations

u2

a vector, the second pseudo-observations

d1

a vector of indicators whether each observation in the first response is fully observed: 1 indicates the observation is fully observed, and 0 indicates the observation is censored

d2

a vector of indicators whether each observation in the second response is fully observed: 1 indicates the observation is fully observed, and 0 indicates the observation is censored

copula.fam

a character indicating which one of the following copula families: "clayton", "frank", "joe", "gumbel", and "normal"

Value

a list of the following components: theta.est, the PMLE of the copula parameter, and IR, IR test statistic.


michellezhou2009/IRtests documentation built on Aug. 19, 2023, 11:24 p.m.