rTableICC: An R Package for Random Generation of 22K and RC Contingency Tables

Abstract:

In this paper, we describe the R package rTableICC that provides an interface for random generation of 2×2×K and R×C contingency tables constructed over either intraclass-correlated or uncorrelated individuals. Intraclass correlations arise in studies where sampling units include more than one individual and these individuals are correlated. The package implements random generation of contingency tables over individuals with or without intraclass correlations under various sampling plans. The package include two functions for the generation of K 2×2 tables over product-multinomial sampling schemes and that of 2×2×K tables under Poisson or multinomial sampling plans. It also contains two functions that generate R×C tables under product-multinomial, multinomial or Poisson sampling plans with or without intraclass correlations. The package also includes a function for random number generation from a given probability distribution. In addition to the contingency table format, the package also provides raw data required for further estimation purposes.

Cite PDF Tweet

Author

Affiliation

Haydar Demirhan

 

Published

April 1, 2016

Received

Mar 24, 2015

DOI

10.32614/RJ-2016-004

Volume

Pages

8/1

48 - 63

CRAN packages used

rTableICC, partitions

CRAN Task Views implied by cited packages

NumericalMathematics

Footnotes

    Reuse

    Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

    Citation

    For attribution, please cite this work as

    Demirhan, "The R Journal: rTableICC: An R Package for Random Generation of 22K and RC Contingency Tables", The R Journal, 2016

    BibTeX citation

    @article{RJ-2016-004,
      author = {Demirhan, Haydar},
      title = {The R Journal: rTableICC: An R Package for Random Generation of 22K and RC Contingency Tables},
      journal = {The R Journal},
      year = {2016},
      note = {https://doi.org/10.32614/RJ-2016-004},
      doi = {10.32614/RJ-2016-004},
      volume = {8},
      issue = {1},
      issn = {2073-4859},
      pages = {48-63}
    }