Summary method for objects from class ‘pram’ to provide information about transitions.
# S3 method for class 'pram'
summary(object, ...)The summary of object from class ‘pram’.
Shows various information about the transitions.
Templ, M. Statistical Disclosure Control for Microdata Using the R-Package sdcMicro, Transactions on Data Privacy, vol. 1, number 2, pp. 67-85, 2008. http://www.tdp.cat/issues/abs.a004a08.php
data(free1)
x <- as.factor(free1[,"MARSTAT"])
x2 <- pram(x)
x2
#> Number of changed observations: 
#> - - - - - - - - - - - 
#> x != x_pram : 144 (3.6%)
summary(x2)
#> Variable: x
#> 
#>  ----------------------
#> 
#> Frequencies in original and perturbed data:
#>                                 x      1      2      3      4     NA
#>                            <char> <char> <char> <char> <char> <char>
#> 1:           Original Frequencies   2547    162    171   1120      0
#> 2: Frequencies after Perturbation   2551    164    170   1115      0
#> 
#> Transitions:
#>     transition Frequency
#>         <char>     <int>
#>  1:    1 --> 1      2526
#>  2:    1 --> 2         1
#>  3:    1 --> 3         2
#>  4:    1 --> 4        18
#>  5:    2 --> 1         1
#>  6:    2 --> 2       138
#>  7:    2 --> 3         3
#>  8:    2 --> 4        20
#>  9:    3 --> 1         3
#> 10:    3 --> 2         5
#> 11:    3 --> 3       139
#> 12:    3 --> 4        24
#> 13:    4 --> 1        21
#> 14:    4 --> 2        20
#> 15:    4 --> 3        26
#> 16:    4 --> 4      1053
#>