In an earlier post, we talked about how to do statistical tests and estimates using summary statistics.
But sometimes you start with a one- or two-way table of counts, and you want the actual collection of data. Here’s one way to get it. It’s a workaround, but it’s reasonably quick:
- Figure out how many different cases you need. It’s usually the number of cells in the table. For example, suppose you want to reproduce the data in the table shown. There are 12 different cases—just different numbers of each one.
- Pick the first type of case. You’d make two columns, Sex and Marital, and one case: Male, MarriedP.
- Make a summary table and put both attributes on it. You’ll only see one case, but that will change.
- Select the single case and Copy it.
- Paste it, repeatedly, until you have 10 of them.
- Select all ten. Copy them.
- Paste until you have 110. Of course, you’re watching the summary table from step 3 in order to tell if you’re done.
- Make the next case: Female, MarriedP.
- Repeat steps 4–7 until you have 114. (At the end, when you have 110, you’ll need to copy and paste 4 more.)
- Do the same for the other types of case.
I recently used this to make a “population” from which we polled. Every student got an identical population of 10,000 voters, and did sampling to make polls of various numbers of voters. Note that Fathom won’t copy more than 5,000 cases at a time.