Possible networks after ministep, simstep or twostep
Source:R/f_alternatives_ministep.R
ts_alternatives_ministep.Rd
ts_alternatives_ministep()
constructs the possible future
networks at time2 after a ministep of ego
given the network net
at time1.
ts_alternatives_twostep()
constructs the possible future networks at time2
after a twostep of two internally sampled egos (via ts_select()
) given the
network net
at time1.
ts_alternatives_simstep()
constructs the possible future
networks at time2 after two simultaneous ministeps of the same ego
given
the network net
at time1.
Usage
ts_alternatives_ministep(net, ego, dist1 = NULL, modet1 = "degree")
ts_alternatives_simstep(net, ego)
ts_alternatives_twostep(
net,
dist1 = NULL,
dist2 = NULL,
modet1 = "degree",
modet2 = "degree"
)
ts_alternative(net, ego, alter)
Arguments
- net
matrix, the adjacency matrix representing the relations between actors. Valid values are 0 and 1.
- ego
numeric, value indicating ego (row number of net)
- dist1
numeric, minimal path length between ego1 and ego2 at time1 in order to be allowed to start a coordination. If
NULL
all dyads are allowed to start a coordination (i.e. simultaneity).- modet1
string indicating the type of ties being evaluated at time1. "
degree
" considers all ties as undirected. "outdegree
" only allows directed paths starting from ego1 and ending at ego2. "indegree
" only allows directed paths starting from ego2 and ending at ego1. See:DETAILS
.- dist2
numeric, minimal path length between ego1 and ego2 at time2 in order for twostep to be counted as coordination. See
DETAILS
.- modet2
string, indicating the type of ties being evaluated at time2. "
degree
" considers all ties as undirected. "outdegree
" only allows directed paths starting from ego1 and ending at ego2. "indegree
" only allows directed paths starting from ego2 and ending at ego1. See:DETAILS
.- alter
numeric, value indicating alter (column number of net)
Value
list, a list of the alternative adjacency matrices after all possible
ministeps of ego (ts_alternatives_ministep
) or after all possible
twosteps of two egos (ts_alternatives_twostep
)
Details
ts_alternatives_ministep()
mimics the ministep assumption as
implemented in the SAOM of RSiena::siena07()
ripley2022manualRsienaTwoStep.
ts_alternatives_twostep()
allows
two actors to simultaneously make a ministep, that is a twostep.
The function implements three types of coordination:
simultaneity: when two actors are picked at random to simultaneously make a ministep;
weak coordination: two actors are picked at random to simultaneously make a ministep but only specific possible future networks are regarded as the result of coordination (as determined by
dist1
,dist2
modet1
andmodet2
) and included in the choice set of the two actors;strict coordination: only actors are sampled to make a twostep who are connected at time1 (as determined by
dist1
andmodet1
).
ts_alternatives_simstep()
allows one actor to make two subsequent
ministeps and thus opens the door for strategic actions.
That is, the first ministep may not contribute to increased satisfaction
of the actor (the network after the first ministep is not evaluated
more favorably than the original network) but the subsequent
ministep may make up for this.
Examples
ts_alternatives_ministep(net = ts_net1, ego = 3)
#> [[1]]
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#> [1,] 0 0 0 0 0 0 0 0 0 0
#> [2,] 0 0 1 0 0 0 0 0 0 0
#> [3,] 0 0 0 0 0 1 0 0 0 0
#> [4,] 0 0 0 0 0 0 0 0 1 0
#> [5,] 0 0 0 0 0 0 0 0 0 0
#> [6,] 0 0 0 0 0 0 0 0 1 1
#> [7,] 1 0 0 0 0 0 0 0 0 0
#> [8,] 0 0 0 0 0 0 0 0 0 1
#> [9,] 0 0 0 1 0 0 0 1 0 0
#> [10,] 0 0 0 0 0 0 0 1 1 0
#>
#> [[2]]
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#> [1,] 0 0 0 0 0 0 0 0 0 0
#> [2,] 0 0 1 0 0 0 0 0 0 0
#> [3,] 1 1 0 0 0 1 0 0 0 0
#> [4,] 0 0 0 0 0 0 0 0 1 0
#> [5,] 0 0 0 0 0 0 0 0 0 0
#> [6,] 0 0 0 0 0 0 0 0 1 1
#> [7,] 1 0 0 0 0 0 0 0 0 0
#> [8,] 0 0 0 0 0 0 0 0 0 1
#> [9,] 0 0 0 1 0 0 0 1 0 0
#> [10,] 0 0 0 0 0 0 0 1 1 0
#>
#> [[3]]
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
#> [1,] 0 0 0 0 0 0 0 0 0 0
#> [2,] 0 0 1 0 0 0 0 0 0 0
#> [3,] 1 0 0 0 0 1 0 0 0 0
#> [4,] 0 0 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