Learn R Programming

callback (version 0.1.3)

stat_raw: Unmatched callback rates

Description

Number and proportion of callbacks for all the candidates.

Usage

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

Value

A callback_stat object with 2 components: specif and props.

specif: A list containing

  • convention: string "raw 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).

props: a data frame containing the following variables.

  • tests: number of tests

  • callback: number of callbacks

  • inf_p_callback: callback rate lower bound

  • p_callback: callback rate

  • sup_p_callback: callback rate upper bound

Arguments

x

A callback object.

method

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

level

A number, containing 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.

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(labour2)
x <- callback(data=labour2,cluster="offer",candid="hist",callback="callback")
str(stat_raw(x))

Run the code above in your browser using DataLab