check.zero.order.homog {cta} | R Documentation |
Zero-Order
Homogeneity Check
Description
Checks whether the estimand function is zero-order
homogeneous.
Usage
check.zero.order.homog(S.fct, Z, tol = 1e-9)
Arguments
S.fct |
An R function object, indicating the estimand function
|
Z |
Population (aka strata) matrix |
tol |
The pre-set tolerance with which |
Details
The main idea:
is zero-order
homogeneous if
, for all
, and for all
within its domain. This program randomly generates
gam
() and
x
(), and computes
It returns a warning if norm(diff.LRHS)
is too far from .
Value
check.zero.order.homog
returns a character string check.result
that states whether is zero-order
homogeneous. If
check.result = ""
, it means that we cannot state that is not zero-order
homogeneous based on the result of the check.
Author(s)
Qiansheng Zhu
References
Lang, J. B. (2004) Multinomial-Poisson homogeneous models for contingency tables, Annals of Statistics, 32, 340–383.
See Also
Examples
# EXAMPLE 1
S.fct <- function(m) {(m[1] - m[2]) / (m[1] + m[2])}
Z <- matrix(c(1, 1, 1, 1), nrow = 4)
check.zero.order.homog(S.fct, Z)
# EXAMPLE 2
S.fct.2 <- function(m) {m[1] - m[2]}
Z <- matrix(c(1, 1, 1, 1), nrow = 4)
check.zero.order.homog(S.fct.2, Z)