solution: Find the Calibration Value

Description Usage Arguments Value References Examples

View source: R/Function_CRTBound.R

Description

Find the calibration value q satisfying T = ∑_{ji} I_{c,h} (L_{ji} - q) from a grid-search.

Usage

1
solution(L, T, h, c, thr)

Arguments

L

A vector in the surrogate indicator function \mathcal{I}_{c,h}.

T

A number in the left hand side.

h,c

Parameters of the surrogate indicator function \mathcal{I}_{c,h}; see Section 4.2 of Park and Kang (2021) for details.

thr

A number used as the threshold in the grid-search. The true solution q* satisfies |q*-q|<thr.

Value

A solution q to T = ∑_{ji} \mathcal{I}_{c,h} (L_{ji} - q).

References

Chan Park & Hyunseung Kang (2021+) Assumption-Lean Analysis of Cluster Randomized Trials in Infectious Diseases for Intent-to-Treat Effects and Network Effects, Journal of the American Statistical Association [Link]

Examples

1
2
3
4
5
6
L <- c(1.1, 1.8, 2.7, 4.1, 5.2,
       6.1, 7.4, 7.9, 8.8, 9.9)
T <- 5
c <- h <- 10^(-4)
thr <- 10^(-4)
solution(L,T,h,c,thr) # Returns 5.65

qkrcks0218/CRTBound documentation built on Dec. 22, 2021, 10:56 a.m.