Thresholds are each vertexes exposure at the time of adoption. Substantively it is the proportion of adopters required for each ego to adopt. (see exposure).
obj: Either a n∗T matrix (eposure to the innovation obtained from exposure) or a diffnet object.
toa: Integer vector. Indicating the time of adoption of the innovation.
t0: Integer scalar. See toa_mat.
include_censored: Logical scalar. When TRUE (default), threshold
lags: Integer scalar. Number of lags to consider when computing thresholds. lags=1
defines threshold as exposure at T−1, where T is time of adoption. levels are not reported for observations adopting in the first time period.
...: Further arguments to be passed to exposure.
Returns
A vector of size n indicating the threshold for each node.
Details
By default exposure is not computed for vertices adopting at the first time period, include_censored=FALSE, as estimating threshold for left censored data may yield biased outcomes.
Examples
# Generating a random graph with random Times of Adoptionset.seed(783)toa <- sample.int(4,5,TRUE)graph <- rgraph_er(n=5, t=max(toa)- min(toa)+1)# Computing exposure using Structural Equivalneceadopt <- toa_mat(toa)se <- struct_equiv(graph)se <- lapply(se,function(x) methods::as((x$SE)^(-1),"dgCMatrix"))expo <- exposure(graph, adopt$cumadopt, alt.graph=se)# Retrieving thresholdthreshold(expo, toa)# We can do the same by creating a diffnet objectdiffnet <- as_diffnet(graph, toa)threshold(diffnet, alt.graph=se)