testTIP: Test for TIP dominance

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/testTIP.R

Description

Statistical test procedure given by Xu and Osberg (1998) to study TIP dominance from sample TIP curve estimates.

Usage

1
2
testTIP(dataset1, dataset2, pz = 0.6, same.arpt.value = NULL,
  norm = FALSE, samplesize = 50)

Arguments

dataset1

a data.frame containing variables obtained by using the setupDataset function.

dataset2

a data.frame containing variables obtained by using the setupDataset function.

pz

a number between 0 and 1 which represents the percentage to be used to calculate the at-risk-of-poverty threshold. The default is 0.6.

same.arpt.value

a number that will be used as a common poverty threshold. If NULL, poverty thresholds will be calculated from each datasets (see arpt).

norm

logical; if TRUE, the normalized TIP curve ordinates are computed using the normalized poverty gaps (poverty gaps divided by the poverty threshold).

samplesize

an integer which represents the number of TIP curve ordinates to be estimated. The default is 50.

Details

Because the TIP curve becomes horizontal at the arpr value, it is only necessary to have the test implemented over the interval \[ 0, \max \{ arpr1, arpr2 \} \]. p[i] For that reason both TIP curves are truncated at the same value equal to max {arpr1, arpr2} and ordinates are only compared at points p_i=i/samplesize, \quad i=1, …, k in the interval [0, max{arpr1, arpr2}] (see arpr).

The null hypotesis to be tested is if the TIP curve calculated from dataset1 dominates the one calculated from dataset2.

Value

A list with the following components:

Tvalue the value of the test-statistic

p.value simulated p-value of the test-statistic Tvalue (Wolak, 1989). It is calculated only when the Tvalue falls into an inconclusive region.

decision if the Tvalue is less than the lower-bound of the critical value at the 5 percent significance level the decision is "Do not reject null hypothesis". If the Tvalue is greater than the upper-bound of the critical value at the 5 percent significance level the decision is "Reject null hypothesis". Lower and upper-bounds critical values are obtained from Kodde and Palm (1986). If Tvalue falls into an inconclusive region (between the lower- and upper-bounds) the p-value will be estimated following Wolak (1989).

Author(s)

A. Berihuete, C.D. Ramos and M.A. Sordo

References

D.A. Kodde and F.C. Palm (1986) Wald criteria for jointly testing equality and inequality restrictions, Econometrica, 50, 1243–1248.

F.A. Wolak (1989), Testing inequality constrains in linear econometric models, Journal of Econometrics, 41, 205–235.

K. Xu and L. Osberg (1998) A distribution-free test for deprivation dominance, Econometric Reviews, 17, 415–429.

See Also

OmegaTIP, setupDataset, arpt, arpr

Examples

1
2
3
4
5
6
7
data(eusilc2)
ATdataset <- setupDataset(eusilc2, country = "AT")
ATdataset1 <- setupDataset(eusilc2, country = "AT", region = "Burgenland")
ATdataset2 <- setupDataset(eusilc2, country = "AT", region = "Carinthia")
testTIP2(ATdataset1, ATdataset, same.arpt.value = arpt(ATdataset))

  

AngelBerihuete/laeken2 documentation built on May 5, 2019, 6:02 a.m.