stat_tcs {callback}R Documentation

Total callback shares

Description

Computes the callback shares and their confidence intervals. The analysis is restricted to the tests with at least one callback. It is the definition used in Riach and Rich (2006).

Usage

stat_tcs(x, level = 0.95)

Arguments

x

a callback object.

level

a number, containing the level of the confidence intervals (0.95 by default).

Value

A list with class "stat_tcs" containing 8 components : level, props, cp, wilson, student, t.student, t.pearson and t.fisher.

level: the level of the confidence intervals.

props: a data frame containing the following variables.

cp: a data frame containing the Clopper-Pearson confidence intervals, from binom.test(), and the p-value of the Fisher test of independence between the candidate type and the callback variable, from fisher.test().

wilson: a data frame containing the Wilson confidence intervals and the p-value of the equality test of callback shares between the two candidates, from prop.test().

student: a data frame containing the Student confidence intervals and the p-value of the equality test of callback shares between the two candidates.

t.fisher: a data frame containing the statistics of the Fisher test.

t.pearson: a data frame containing the statistics of the Pearson test.

t.student: A data frame containing the statistics of the Student test.

Author(s)

Emmanuel Duguet

References

Clopper, C. J. & Pearson, E. S. (1934). The use of confidence or fiducial limits illustrated in the case of the binomial. Biometrika, 26, 404–413. doi:10.2307/2331986.

Riach, P. A., & Rich, J. (2006). An experimental investigation of sexual discrimination in hiring in the English labor market. The BE Journal of Economic Analysis & Policy, 6(2),

Wilson, E.B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22, 209–212. doi:10.2307/2276774.

Examples

data(labour1)
x <- callback(data=labour1,cluster="offer",candid="hist",callback="callback")
str(stat_ecs(x,level=0.9))


[Package callback version 0.1.1 Index]