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.

Highlights

  • Random generation of contingency tables is essential for simulation studies conducted over categorical data

  • We propose a simple approach for the generation of 2×2×K and R×C contingency tables in the presence of intraclass correlations (ICCs) between individuals under three sampling plans, and describe the R package rTableICC (Demirhan, 2015) for the implementation of the proposed approach

  • We run the following code to generate a 2 × 3 contingency table under a product multinomial sampling plan with fixed row margins, zero clusters being not allowed, and cell probabilities being in accordance with the entered counts of fixed margin

Read more

Summary

Introduction

Random generation of contingency tables is essential for simulation studies conducted over categorical data. Monte Carlo simulation studies are essential in the development of new statistical methods to handle ICCs. there is neither a Monte Carlo approach nor an R package to implement random generation of contingency tables under intraclass-correlated individuals. The package rTableICC includes four functions for random generation of 2×2×K and R×C contingency tables with and without intraclass-correlated individuals under multinomial, product - multinomial and Poisson sampling plans. It has a function for random generation of data from a given probability function.

Data generation under ICC
Structure of the rTableICC package
Generation of random values from a discrete probability distribution
Illustrative examples
Center Margins
Row Margins
Findings
Summary
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.