PLS2way {SmallCountRounding} | R Documentation |
Two-way table from PLSrounding output
Description
Output from PLSrounding
is presented as two-way table(s) in cases where this is possible.
A requirement is that the number of main dimensional variables is two.
Usage
PLS2way(obj, variable = c("rounded", "original", "difference", "code"))
Arguments
obj |
Output object from |
variable |
One of |
Details
When parameter "variable"
is "code"
, output is coded as "#"
(publish), "."
(inner) and "&"
(both).
Value
A data frame
Examples
# Making tables from PLSrounding examples
z <- SmallCountData("e6")
a <- PLSrounding(z, "freq", formula = ~eu * year + geo)
PLS2way(a, "original")
PLS2way(a, "difference")
PLS2way(a, "code")
PLS2way(PLSrounding(z, "freq", formula = ~eu * year + geo * year), "code")
eHrc2 <- list(geo = c("EU", "@Portugal", "@Spain", "Iceland"), year = c("2018", "2019"))
PLS2way(PLSrounding(z, "freq", hierarchies = eHrc2))
[Package SmallCountRounding version 1.0.3 Index]