Learn R Programming

callback (version 0.1.3)

stat_mcr: Matched callback rates

Description

Computes the matched callback rates, their confidence intervals and performs the equality tests between the candidates.

Usage

stat_mcr(x, method = "student", level = 0.95)

Value

A list with class "callback_stat" containing 4 components: specif, counts, props and stats

specif: A list containing

  • convention: string "matched callback rates".

  • cid: convention on 3 characters.

  • method: the estimation method, "cp" for Clopper-Pearson, "wilson" for Wilson and "student" for "Student" (the default).

  • level: the level of the confidence intervals (0.95 by default).

  • source: the R stats function used to compute the statistics (binom.test, prop.test or t.test).

  • name: the name of the statistic (Fisher, Pearson or Student).

counts: a data frame with the callback counts.

  • tests: number of tests.

  • callback: number of tests with at least one callback for either candidate.

  • disc: number of discrimination cases.

  • c00: number of test without a callback.

  • c10: number of tests with callbacks for candidate 1 only.

  • c01: number of tests with callbacks for candidate 2 only.

  • c11: number of tests with callbacks for both candidates.

props: A data frame containing the following proportions and their confidence intervals (when relevant)

  • inf_p_callback: overall callback rate, lower bound.

  • p_callback: overall callback rate.

  • sup_p_callback: overall callback rate, upper bound.

  • inf_p_cand1: 1st candidate callback rate, lower bound.

  • p_cand1: 1st candidate callback rate.

  • sup_p_cand1: 1st candidate callback rate, upper bound.

  • inf_p_cand2: 2nd candidate callback rate, lower bound.

  • p_cand2: 2nd candidate callback rate.

  • sup_p_cand2: 2nd candidate callback rate, upper bound.

  • inf_cand_dif: p_cand1-p_cand2, lower bound.

  • p_cand_dif: callback proportion difference between the candidates.

  • sup_cand_dif: p_cand1-p_cand2, upper bound.

stats: a data frame containing the statistics for testing the equality of proportions.

  • statistic: the value of the test statistic.

  • p_stat: the p-value of the test statistic.

  • c_stat: the significance code of the test statistic.

Arguments

x

a callback object.

method

estimation method, "cp" for Clopper-Pearson, "wilson" for Wilson and "student" for Student (the default).

level

the level of the confidence intervals (0.95 by default).

Author

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.

Student. (1908). The Probable Error of a Mean. Biometrika, 6(1), 1–25. doi:10.2307/2331554.

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

Run this code
data(labour1)
x <- callback(data=labour1,cluster="offer",candid="hist",callback="callback")
str(stat_mcr(x))

Run the code above in your browser using DataLab