prunk: unknown relationships

Description Usage Arguments Value Author(s) Examples

View source: R/prunk.R

Description

unknown relationships

Usage

1
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 (not possible...)

Author(s)

Christof Neumann

Examples

1
2
3
4
5
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)

EloRating documentation built on May 29, 2017, 7:14 p.m.