PartnerSearch {VirtualPop}R Documentation

Simple Partner Search Simulation

Description

In this updated partner search model, a partner is an individual of a different sex selected at random among members of the same generation. The function is called by GetGenerations().

Usage

PartnerSearch(idego, d)

Arguments

idego

IDs of egos in search for partner

d

Database (eg dLH)

Value

d

Updated version of database (d), which includes, for each individual without a partner and able to find a partner, the ID of the partner.

dp

Data related to partner search (dataframe)

Examples

utils::data(dLH,package="VirtualPop")
dp <- VirtualPop::PartnerSearch(idego=dLH$ID,d=dLH)


[Package VirtualPop version 2.1.0 Index]