Description Usage Arguments Details Value Note Author(s) Examples
The functions tEdgeFormation
and tEdgeDissolution
evaluate a network object at multiple time points and return counts (or fractions) of the number of edges forming (edge onset at time point) and dissolving (edge terminus at time point). The counts are returned as numeric vector which is a time-series object (class ts
).
1 2 3 4 5 | tEdgeFormation(nd, start, end, time.interval = 1,
result.type=c('count','fraction'), include.censored=FALSE)
tEdgeDissolution(nd, start, end, time.interval = 1,
result.type=c('count','fraction'), include.censored=FALSE)
|
nd |
a |
start |
optional numeric time value at which evaluation should start (default is first observed time) |
end |
optional numeric time value at which evaluation should end (default is last observed time) |
time.interval |
optional numeric value giving time interval between evaluations (default is 1) |
result.type |
either |
include.censored |
logical, should ties with truncated/censored onset or termination times be included in the respective formation or dissolution counts? |
Uses as.data.frame.networkDynamic
internally. TODO: dyad formation rate is not yet corrected for vertex activity, uses the aggregate, not the momentary, network size.
When result.type='fraction'
:
formation returns the ratio of number of ties forming to the number of possible empty dyads that could have formed ties. So value of 1 would mean all empty dyads formed ties, value of 0 means no ties formed. In sparse networks, the numbers will tend to be very, very small.
dissolution returns the ratio of the number of ties dissolving to the number preexisting ties that could have dissolved. So value of 1 means all ties disolved, 0 means no ties disolved.
When include.censored=FALSE
spells of edges which onset outside of the query range will not be included in formation counts.
For tEdgeFormation
and tEdgeDissolution
, a numeric vector of class ts
giving the formation and dissolution counts (respectively) as a time-series. For edgeFormationAt
and edgeDissolutionsAt
, a single numeric value
should add additional args to allow binning other than 'at' for working with non-discrete time, options to deal with how censored edges are calculated.
skyebend@uw.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(networkDynamicData)
data(concurrencyComparisonNets)
# plot formation and dissolution counts time-series
plot(tEdgeFormation(base),col='green',
main='edge formation and dissolution rates per timestep of base')
points(tEdgeDissolution(base),col='red',type='l')
## Not run:
# compute fraction of ties dissolving every 10 steps
tEdgeDissolution(base,time.interval = 10,result.type = 'fraction')
# compute fraction of empty dyads forming ties every 10 steps
tEdgeFormation(base,time.interval = 10,result.type = 'fraction')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.