| ci_overlap | R Documentation |
A specific utility measure: the same regression model is fitted to the real and the synthetic data and, for each coefficient, the overlap of the two confidence intervals is computed (Karr et al., 2006):
IO = \frac{1}{2}\left(\frac{U-L}{u_r-l_r} + \frac{U-L}{u_s-l_s}\right)
where [L, U] is the intersection of the intervals. Overlap is 1 for
identical intervals and can become negative when they are disjoint.
ci_overlap(real, synthetic, formula, family = stats::gaussian(), level = 0.95)
real, synthetic |
Data frames. |
formula |
Model formula. |
family |
A |
level |
Confidence level. |
A data frame with estimates, intervals, the standardised difference of the estimates and the interval overlap per coefficient.
Karr, A. F., Kohnen, C. N., Oganian, A., Reiter, J. P. and Sanil, A. P. (2006). A framework for evaluating the utility of data altered to protect confidentiality. The American Statistician, 60(3), 224–232. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1198/000313006X124640")}
syn <- synthesize(mtcars, seed = 1)
ci_overlap(mtcars, syn, mpg ~ wt + hp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.