Description Usage Arguments Value Examples
There are many ways to represent the same data. In problem 4.2, the data is given in the form of counts. This is the inverse of em.counts_to_responses, e.g.,
1 2 3 | xs <- em.counts_to_responses(counts)
em.responses_to_counts(xs) == counts
em.counts_to_responses(em.responses_to_counts(xs)) == xs.
|
1 | em.counts_to_responses(counts)
|
counts |
count data |
the count data converted to response data, say counts = (379,299,...), then 379 responded 0 encounters, 299 responded 1 encounter, ...
1 2 3 4 | # let counts be the count data
counts[j] # denotes number of respondents with j risky sexual encounters.
xs <- em.counts_to_responses(counts)
xs[k] # denotes the response of the i-th person
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.