print.sexRatioTest | R Documentation |
print()
helper function for sexRatioTest()
functionprint()
helper function for sexRatioTest()
function
## S3 method for class 'sexRatioTest'
print(x, ...)
x |
Output resulting from applying the |
... |
Additional |
Printed output of sexRatioTest()
function
# Use sexRatioTest() on household roster data from a survey in Tanzania
# (as.ex01) and census data of Tanzania extracted from Wolfram|Alpha knowledge
# engine (as.ex02)
svy <- as.ex01
ref <- as.ex02
censusM <- sum(ref$Males)
censusF <- sum(ref$Females)
srt <- sexRatioTest(svy$sex, codes = c(1, 2), pop = c(censusM, censusF))
print(srt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.