Description Usage Arguments Details Value Author(s) Examples
Checks the domain of the sex variable and returns a factor with levels male
and female
.
1 | check.sex(sex)
|
sex |
Vector indicating sex of the subject |
sex
is converted to character
, then converted to a factor
.The Swedish registers encode males as 1 and females as 2—all other values are taken to be missing values and set to NA
. A warning is given if missing values are present.
Factor with levels male
and female
.
Peter Konings
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.