Summary method for objects from class ‘pram’ to provide information about transitions.

# S3 method for pram
summary(object, ...)

Arguments

object

object from class ‘pram’

...

Additional arguments passed through.

Value

The summary of object from class ‘pram’.

Details

Shows various information about the transitions.

References

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

See also

Author

Matthias Templ and Bernhard Meindl

Examples


data(free1)
x <- as.factor(free1[,"MARSTAT"])
x2 <- pram(x)
x2
#> Number of changed observations: 
#> - - - - - - - - - - - 
#> x != x_pram : 264 (6.6%)
summary(x2)
#> Variable: x
#> 
#>  ----------------------
#> 
#> Frequencies in original and perturbed data:
#>                                 x    1   2   3    4 NA
#> 1:           Original Frequencies 2547 162 171 1120  0
#> 2: Frequencies after Perturbation 2557 167 165 1111  0
#> 
#> Transitions:
#>     transition Frequency
#>  1:    1 --> 1      2471
#>  2:    1 --> 2         8
#>  3:    1 --> 3         8
#>  4:    1 --> 4        60
#>  5:    2 --> 1        12
#>  6:    2 --> 2       130
#>  7:    2 --> 3         1
#>  8:    2 --> 4        19
#>  9:    3 --> 1        15
#> 10:    3 --> 2         3
#> 11:    3 --> 3       128
#> 12:    3 --> 4        25
#> 13:    4 --> 1        59
#> 14:    4 --> 2        26
#> 15:    4 --> 3        28
#> 16:    4 --> 4      1007
#>