Is possible to create fake data to recreate a contingency table?
For example:
originalTable <- matrix(c(188, 29, 20, 51), ncol = 2, byrow = TRUE)
colnames(originalTable) <- c("A", "B")
rownames(originalTable) <- c("C", "D")
Is possible to generate a dataframe from the table with 288 pairs of observations that match the table?
I found the r2dtable function, but any idea how to extract or save as dataframe?
r2dtable(1, c(217, 71), c(208, 80))
Thanks in advance