print.sexRatioTest: 'print()' helper function for 'sexRatioTest()' function

View source: R/sexRatioTest.R

print.sexRatioTestR Documentation

print() helper function for sexRatioTest() function

Description

print() helper function for sexRatioTest() function

Usage

## S3 method for class 'sexRatioTest'
print(x, ...)

Arguments

x

Output resulting from applying the sexRatioTest() function

...

Additional print() parameters

Value

Printed output of sexRatioTest() function

Examples

# 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)


ernestguevarra/nipnTK documentation built on April 13, 2024, 1:48 p.m.