prunk: unknown relationships

View source: R/prunk.R

prunkR Documentation

unknown relationships

Description

unknown relationships

Usage

prunk(eloobject, daterange = NULL)

Arguments

eloobject

output from elo.seq or a matrix, e.g. from creatematrix

daterange

date range to be considered (character or Date of length 2), by default considers the entire date range of the sequence. In case the function works on a matrix this is ignored.

Value

numeric, proportion of unknown relationships (and total N) when considering all possible dyads, and the same after accounting for co-residency. For matrices, considering co-residency is ignored.

Author(s)

Christof Neumann

Examples

data(adv); data(advpres)
x <- elo.seq(winner = adv$winner, loser = adv$loser, Date = adv$Date, presence = advpres)
prunk(x, c("2010-01-01", "2010-01-15"))
mat <- creatematrix(x, c("2010-01-01", "2010-01-15"))
prunk(mat)

gobbios/EloRating documentation built on July 19, 2024, 4:05 a.m.