sexSSA: Imputing sex from first names

Description Usage Arguments Value Examples

View source: R/sexSSA.R

Description

Sexual identity imputation from first name using Social Secuarity Administration (SSA) data.

Usage

1
sexSSA(first.name, cohort = NULL, min.cohort = NULL, max.cohort = NULL)

Arguments

first.name

The individual first name

cohort

Year of birth of the individual

min.cohort

The earliest cohort year to include in the sex imputation.

max.cohort

The latest cohort year to include in the sex imputation.

Value

The function returns a data frame with 4 columns:

Examples

1
2
3
4
sexSSA("Jon",cohort=2000)
sexSSA(c("Jon","Angel","Alesandra","Chris"),cohort=2000)
sexSSA("Jon",min.cohort=2000,max.cohort=2002)
sexSSA(c("Jon","Angel","Alesandra","Chris"),min.cohort=2000,max.cohort=2002)

yotamshemtov/NameSexRace documentation built on May 4, 2019, 5:33 p.m.