| Title: | Comprehensive Tools for Relational Event History Data |
|---|---|
| Description: | A unified interface for relational event history analysis. The package re-exports key functions from 'remify', 'remstats', and 'remstimate' to support a streamlined workflow from data processing to model estimation and diagnosis. |
| Authors: | Joris Mulder [aut, cre], Giuseppe Arena [aut], Marlyne Meijerink-Bosman [aut], Rumana Lakdawala [aut], Roger Leenders [aut], Fabio Generoso Vieira [aut], Mahdi Shafiee Kamalabad [aut], Diana Karimova [ctb] |
| Maintainer: | Joris Mulder <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.2.0 |
| Built: | 2026-07-19 07:57:13 UTC |
| Source: | https://github.com/tilburgnetworkgroup/remverse |
See activeDegreeDyad.
activeDegreeDyad(scaling = c("none", "std"), consider_type = "ignore")activeDegreeDyad(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See activeDegreeMax.
activeDegreeMax(scaling = c("none", "std"), consider_type = "ignore")activeDegreeMax(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See activeDegreeMin.
activeDegreeMin(scaling = c("none", "std"), consider_type = "ignore")activeDegreeMin(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeIndegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")activeIndegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeOutdegreeSender(scaling = c("none", "std"), consider_type = "ignore")activeOutdegreeSender(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See activeReciprocalTie.
activeReciprocalTie(scaling = c("none", "std"), consider_type = "ignore")activeReciprocalTie(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See activeTie.
activeTie(scaling = c("none", "std"), consider_type = "ignore")activeTie(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTotaldegreeDyad(scaling = c("none", "std"), consider_type = "ignore")activeTotaldegreeDyad(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See activeTotaldegreeReceiver.
activeTotaldegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")activeTotaldegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTotaldegreeSender(scaling = c("none", "std"), consider_type = "ignore")activeTotaldegreeSender(scaling = c("none", "std"), consider_type = "ignore")
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
See actor_effects.
actor_effects(step = NULL)actor_effects(step = NULL)
step |
outputs all statistics in the sender activity step (if 'step = sender') or receiver choice step (if 'step = receiver'). |
See aomstats.
aomstats( reh, sender_effects = NULL, receiver_effects = NULL, memory = c("full", "window", "decay", "interval"), memory_value = NA, first = 2, last = Inf, display_progress = FALSE, attr_actors = NULL, attr_dyads = NULL )aomstats( reh, sender_effects = NULL, receiver_effects = NULL, memory = c("full", "window", "decay", "interval"), memory_value = NA, first = 2, last = Inf, display_progress = FALSE, attr_actors = NULL, attr_dyads = NULL )
reh |
an object of class |
sender_effects |
an object of class |
receiver_effects |
an object of class |
memory |
The memory to be used. See ‘Details’. |
memory_value |
Numeric value indicating the memory parameter. Default
is |
first |
an optional integer value, specifying the index of the first
unique time point event in the relational event history for which statistics must be
computed (see 'Details'). Default is |
last |
an optional integer value, specifying the index of the last unique time point in the relational event history for which statistics must be computed (see 'Details') |
display_progress |
should a progress bar for the computation of the endogenous statistics be shown (TRUE) or not (FALSE)? |
attr_actors |
optionally, an object of class
|
attr_dyads |
optionally, an object of class |
See average.
average(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)average(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See bind_remstats.
bind_remstats(...)bind_remstats(...)
... |
Any number of |
See degreeDiff.
degreeDiff(scaling = c("none", "std"), consider_type = "ignore")degreeDiff(scaling = c("none", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, standardization of the degree difference per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See degreeMax.
degreeMax(scaling = c("none", "prop", "std"), consider_type = "ignore")degreeMax(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by two times the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See degreeMin.
degreeMin(scaling = c("none", "prop", "std"), consider_type = "ignore")degreeMin(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by two times the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See diagnostics.
diagnostics(object, reh, stats, ...)diagnostics(object, reh, stats, ...)
object |
is a |
reh |
is a |
stats |
is a |
... |
further arguments to be passed to the 'diagnostics' method. |
See difference.
difference( variable, attr_actors = NULL, scaling = c("none", "std"), absolute = TRUE, attr_data )difference( variable, attr_actors = NULL, scaling = c("none", "std"), absolute = TRUE, attr_data )
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
absolute |
Logical value indicating whether the difference values should be converted to the absolute difference (default is TRUE). |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See dlcrem.
dlcrem(reh, stats, k = 2L, nrep = 3L, ...)dlcrem(reh, stats, k = 2L, nrep = 3L, ...)
reh |
A |
stats |
A |
k |
Number of latent classes (default 2). |
nrep |
Number of random restarts (default 3). |
... |
Additional arguments passed to |
See dyad.
dyad(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)dyad(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)
variable |
A string specifying the attribute to compute the statistic. If |
attr_dyads |
A |
scaling |
The method for scaling the statistic. The default is no scaling. Alternatively, standardization of the statistic per time point can be requested with "std". |
x |
Deprecated argument. Please use 'attr_dyads' instead. |
variableName |
Deprecated argument. Please use 'variable' instead. |
A small directed relational event history where each event has a known start and end time, suitable for duration modeling.
data(edgelist_duration)data(edgelist_duration)
A data frame with columns:
Event start time.
Sender.
Receiver.
Event end time.
data(edgelist_duration) reh <- remify(edgelist_duration, duration = TRUE)data(edgelist_duration) reh <- remify(edgelist_duration, duration = TRUE)
See frailty_rem.
frailty_rem(reh, stats, ...)frailty_rem(reh, stats, ...)
reh |
A |
stats |
A |
... |
Additional arguments passed to |
A duration-extended version of the history dataset. Each row is
one directed interaction among 10 actors with a start time (time)
and end time (end). Right-censored events have end = NA.
history_duremhistory_durem
A data frame with 115 rows and 6 columns:
Start time of the event (seconds)
Initiating actor ID
Receiving actor ID
Context: "work" or "social"
Intrinsic event weight
End time of the event (NA = right-censored)
See indegreeReceiver.
indegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")indegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See indegreeSender.
indegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")indegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See inertia.
inertia(scaling = c("none", "prop", "std"), consider_type = "ignore")inertia(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the inertia statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, the statistics can be scaled by specifying 'prop', in which raw counts are divided by the outdegree of the sender at time t (see 'details') or standardization of the raw counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
A dataset containing the (hypothetical) age of the actors in a social
network of a relational event history randomREH3.
data(info3)data(info3)
A dataframe with 7 rows and 4 variables:
numeric id of the actor
numeric value, describes when the value of the covariate changes, if it changes
age of the actor
dichotomized sex of the actor (e.g., 0 = male, 1 = female)
randomREH3 for the relational event history.
See is.remify_durem.
is.remify_durem(x)is.remify_durem(x)
x |
Any R object. |
See is.remstats_durem.
is.remstats_durem(x)is.remstats_durem(x)
x |
Any R object. |
See isp.
isp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")isp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
unique |
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique shared partner (TRUE). See details for more information. |
scaling |
the method for scaling the triad statistic. Default is to not scale the statistic but keep the raw 'counts'. Alternatively, standardization of the raw counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See itp.
itp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")itp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
unique |
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique two-path (TRUE). See details for more information. |
scaling |
The method for scaling the triad statistic. The default value is "none", which means the statistic is not scaled. Alternatively, you can set it to "std" to request standardization of the raw counts per time point. |
consider_type |
character. Controls how event types are handled:
|
See maximum.
maximum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)maximum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See minimum.
minimum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)minimum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See osp.
osp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")osp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
unique |
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique shared partner (TRUE). See details for more information. |
scaling |
the method for scaling the triad statistic. Default is to not scale the statistic but keep the raw 'counts'. Alternatively, standardization of the raw counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See otp.
otp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")otp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
unique |
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique two-path (TRUE). See details for more information. |
scaling |
The method for scaling the triad statistic. The default value is "none", which means the statistic is not scaled. Alternatively, you can set it to "std" to request standardization of the raw counts per time point. |
consider_type |
character. Controls how event types are handled:
|
See outdegreeReceiver.
outdegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")outdegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See outdegreeSender.
outdegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")outdegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See psABAB.
psABAB(consider_type = "ignore")psABAB(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABAY.
psABAY(consider_type = "ignore")psABAY(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABBA.
psABBA(consider_type = "ignore")psABBA(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABBY.
psABBY(consider_type = "ignore")psABBY(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABXA.
psABXA(consider_type = "ignore")psABXA(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABXB.
psABXB(consider_type = "ignore")psABXB(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See psABXY.
psABXY(consider_type = "ignore")psABXY(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
A randomly generated sequence of 999 duration relational events among 5
actors. Starting an event depended on inertia, reciprocity, sender
out-degree, incoming shared partners, and sender age; (undirected) ending an
event depended on the dyad's total active degree and the age difference of
the two actors. Exponential memory decay was used with a half-life of 2000.
Actor covariates are in info3.
data(randomREH3)data(randomREH3)
data(randomREH3) loads a data.frame with 999 rows and
6 columns:
timethe timestamp indicating when each event started;
actor1the actor that generated (initiated) the event;
actor2the actor that received the event;
endthe time at which the event ended (NA = right-censored);
settingthe setting (type) of the event, either social or work;
durationthe duration of each event (end - time), which can also serve as an event weight.
info3 for actor covariates.
See receive.
receive(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)receive(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See recencyContinue.
recencyContinue(consider_type = "ignore")recencyContinue(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
recencyReceiveReceiver(consider_type = "ignore")recencyReceiveReceiver(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See recencyReceiveSender.
recencyReceiveSender(consider_type = "ignore")recencyReceiveSender(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See recencySendReceiver.
recencySendReceiver(consider_type = "ignore")recencySendReceiver(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See recencySendSender.
recencySendSender(consider_type = "ignore")recencySendSender(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See reciprocity.
reciprocity(scaling = c("none", "prop", "std"), consider_type = "ignore")reciprocity(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the reciprocity statistic. Default is to not scale the statistic but keep the raw 'counts'. Alternatively, the statistics can be scaled by 'prop', in which raw counts are divided by the indegree of the sender at time t (see 'details') or standardization of the raw counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See remfrailty.
remfrailty( reh, stats, approach = c("frequentist", "Bayesian"), engine = "auto", ... )remfrailty( reh, stats, approach = c("frequentist", "Bayesian"), engine = "auto", ... )
reh |
A |
stats |
A |
approach |
Either |
engine |
For |
... |
Additional arguments passed to |
See remify.
remify( edgelist, directed = TRUE, ordinal = FALSE, model = c("tie", "actor"), actors = NULL, riskset = c("full", "active", "active_saturated", "manual"), manual_riskset = NULL, extend_riskset_by_type = FALSE, event_type = NULL, event_weight = NULL, origin = NULL, time_units = c("auto", "secs", "mins", "hours", "days", "weeks", "months", "years"), aggregate_time = 1, attach_riskset = TRUE, riskset_decode = c("labels", "ids", "none"), riskset_max_decode = 200000L, event_attributes = NULL, ncores = 1L, duration = FALSE, dur_directed_end = FALSE, dur_type_exclusive = FALSE )remify( edgelist, directed = TRUE, ordinal = FALSE, model = c("tie", "actor"), actors = NULL, riskset = c("full", "active", "active_saturated", "manual"), manual_riskset = NULL, extend_riskset_by_type = FALSE, event_type = NULL, event_weight = NULL, origin = NULL, time_units = c("auto", "secs", "mins", "hours", "days", "weeks", "months", "years"), aggregate_time = 1, attach_riskset = TRUE, riskset_decode = c("labels", "ids", "none"), riskset_max_decode = 200000L, event_attributes = NULL, ncores = 1L, duration = FALSE, dur_directed_end = FALSE, dur_type_exclusive = FALSE )
edgelist |
the relational event history. An object of class |
directed |
logical value indicating whether events are directed ( |
ordinal |
logical value indicating whether only the order of events matters in the model ( |
model |
either |
actors |
[optional] character vector of actors' names that may be observed interacting in the network. If |
riskset |
[optional] character value indicating the type of risk set to process: |
manual_riskset |
[optional] When |
extend_riskset_by_type |
logical. |
event_type |
Optional. Either If If When event types are present (via |
event_weight |
Optional. Either If If |
origin |
[optional] starting time point of the observation period (default is |
time_units |
Character string specifying the time unit for converting time values when 'edgelist$time' is of class Date or POSIXct; ignored for numeric or integer time. Default is "secs". |
aggregate_time |
Integer >= 1. Event-time aggregated based on unique time points.
Keeps every |
attach_riskset |
Logical. If |
riskset_decode |
Character. Controls how (and whether) the included risk set
dyads are decoded and attached in
|
riskset_max_decode |
Integer. Maximum number of included dyads (i.e.,
|
event_attributes |
Optional character vector of column names in
These columns are stored as Note: |
ncores |
[optional] number of cores used in the parallelization of the processing functions. (default is |
duration |
Logical. If |
dur_directed_end |
Logical. Only used when |
dur_type_exclusive |
Logical. Only used when |
See remixture.
remixture(reh, stats, random, k = 2L, concomitant = NULL, nrep = 3L, ...)remixture(reh, stats, random, k = 2L, concomitant = NULL, nrep = 3L, ...)
reh |
A |
stats |
A |
random |
Clustering formula, e.g. |
k |
Number of latent classes (default 2). |
concomitant |
Optional concomitant formula for class probabilities. |
nrep |
Number of random restarts (default 3). |
... |
Additional arguments passed to |
See rempenalty.
rempenalty( reh, stats, approach = c("frequentist", "Bayesian"), alpha = 1, prior = "horseshoe", nfolds = 10L, lambda_select = c("1se", "min"), ... )rempenalty( reh, stats, approach = c("frequentist", "Bayesian"), alpha = 1, prior = "horseshoe", nfolds = 10L, lambda_select = c("1se", "min"), ... )
reh |
A |
stats |
A |
approach |
|
alpha |
Elastic-net mixing for the frequentist fit: |
prior |
Shrinkage prior for the Bayesian fit (default
|
nfolds |
Cross-validation folds (frequentist). Default |
lambda_select |
Which lambda (frequentist): |
... |
Additional arguments passed to |
See remstats.
remstats( reh, tie_effects = NULL, sender_effects = NULL, receiver_effects = NULL, start_effects = NULL, end_effects = NULL, memory = c("full", "window", "decay", "interval"), memory_value = NA, psi_start = 1, psi_end = 1, first = 2, last = Inf, display_progress = FALSE, sampling = FALSE, samp_num = 10L, seed = NULL, attr_actors = NULL, attr_dyads = NULL )remstats( reh, tie_effects = NULL, sender_effects = NULL, receiver_effects = NULL, start_effects = NULL, end_effects = NULL, memory = c("full", "window", "decay", "interval"), memory_value = NA, psi_start = 1, psi_end = 1, first = 2, last = Inf, display_progress = FALSE, sampling = FALSE, samp_num = 10L, seed = NULL, attr_actors = NULL, attr_dyads = NULL )
reh |
an object of class |
tie_effects |
an object of class |
sender_effects |
an object of class |
receiver_effects |
an object of class |
start_effects |
Formula for the start sub-model statistics. Only used
when |
end_effects |
Formula for the end sub-model statistics. Only used when
|
memory |
The memory to be used. See ‘Details’. |
memory_value |
Numeric value indicating the memory parameter. Default
is |
psi_start |
Numeric. Duration exponent for start-model history
weighting. The weight of each past event in the start statistics is
|
psi_end |
Numeric. Duration exponent for end-model history weighting.
The weight of each past event in the end statistics is
|
first |
an optional integer value, specifying the index of the first
unique time point event in the relational event history for which statistics must be
computed (see 'Details'). Default is |
last |
an optional integer value, specifying the index of the last unique time point in the relational event history for which statistics must be computed (see 'Details') |
display_progress |
should a progress bar for the computation of the endogenous statistics be shown (TRUE) or not (FALSE)? |
sampling |
Logical. If |
samp_num |
Integer. Number of dyads to include per event when
|
seed |
Optional integer. Random seed used for dyad sampling. Setting
this ensures reproducible sampling across calls. If |
attr_actors |
optionally, an object of class
|
attr_dyads |
optionally, an object of class |
See remstimate.
remstimate( reh, stats, approach = c("frequentist", "Bayesian"), random = NULL, penalty = NULL, mixture = NULL, engine = "auto", bayes = list(), seed = NULL, ncores = 1L, WAIC = FALSE, method = NULL, ... )remstimate( reh, stats, approach = c("frequentist", "Bayesian"), random = NULL, penalty = NULL, mixture = NULL, engine = "auto", bayes = list(), seed = NULL, ncores = 1L, WAIC = FALSE, method = NULL, ... )
reh |
A |
stats |
A |
approach |
|
random |
One-sided formula for random effects, e.g.
|
penalty |
List of penalisation settings. Frequentist uses glmnet;
Bayesian uses shrinkem. Recognised elements:
|
mixture |
List of finite-mixture settings (flexmix). Recognised
elements: |
engine |
GLMM backend: |
bayes |
List of Bayesian (C++ HMC) controls for basic tie/actor
models. Recognised elements: |
seed |
Random seed. |
ncores |
Number of threads (C++ backends). Default |
WAIC |
Compute WAIC? Default |
method |
[Deprecated] Legacy argument for backward
compatibility. Use |
... |
Further arguments passed to the backend. The former
top-level knobs ( |
See remtribute.
remtribute( reh, stats = NULL, effects = NULL, attribute = "type", attribute_type = c("nominal", "ordinal", "numeric"), attr_actors = NULL, memory = "full", memory_value = Inf, ... )remtribute( reh, stats = NULL, effects = NULL, attribute = "type", attribute_type = c("nominal", "ordinal", "numeric"), attr_actors = NULL, memory = "full", memory_value = Inf, ... )
reh |
A |
stats |
A |
effects |
A one-sided formula with tie-model effects, e.g.
|
attribute |
Character string: column name in
|
attribute_type |
The type of the attribute:
|
attr_actors |
Optional data frame of actor-level covariates,
passed to |
memory |
Memory type for statistics computation. Passed to
|
memory_value |
Memory parameter value. Passed to
|
... |
Additional arguments passed to the fitting backend
( |
See remwindow.
remwindow( reh, stats, n.windows = 5L, window.width = NULL, step.size.window = NULL, start.point = 1L, min.events = 50L, approach = c("frequentist", "Bayesian"), parallel = FALSE, ncores.window = 1L, ... )remwindow( reh, stats, n.windows = 5L, window.width = NULL, step.size.window = NULL, start.point = 1L, min.events = 50L, approach = c("frequentist", "Bayesian"), parallel = FALSE, ncores.window = 1L, ... )
reh |
A |
stats |
A |
n.windows |
Target number of windows in auto mode. Default 5. |
window.width |
Fixed number of events per window (manual mode). |
step.size.window |
Events to advance between windows (manual mode
only). Default equals |
start.point |
First array row to start windowing from. Default 1L. |
min.events |
Floor on window width (auto and manual). |
approach |
|
parallel |
Fit windows in parallel? Default |
ncores.window |
Parallel workers across windows (Unix/macOS only; falls back to sequential with a message on Windows). |
... |
Further arguments passed to |
See rrankReceive.
rrankReceive(consider_type = "ignore")rrankReceive(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See rrankSend.
rrankSend(consider_type = "ignore")rrankSend(consider_type = "ignore")
consider_type |
character. Controls how event types are handled:
|
See same.
same(variable, attr_actors = NULL, attr_data)same(variable, attr_actors = NULL, attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See select_stats.
select_stats( object, tie_effects = NULL, sender_effects = NULL, receiver_effects = NULL, start_effects = NULL, end_effects = NULL )select_stats( object, tie_effects = NULL, sender_effects = NULL, receiver_effects = NULL, start_effects = NULL, end_effects = NULL )
object |
a |
tie_effects |
character vector of statistic names to keep (tomstats only) |
sender_effects |
character vector of statistic names to keep (aomstats only) |
receiver_effects |
character vector of statistic names to keep (aomstats only) |
start_effects |
character vector of statistic names to keep (remstats_durem only) |
end_effects |
character vector of statistic names to keep (remstats_durem only) |
See send.
send(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)send(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
variable |
string with the name of the column in the
|
attr_actors |
optionally, an object of class
|
scaling |
the method for scaling the statistic. Default is to not scale the statistic. Alternatively, standardization of the statistic per time point can be requested with "std". |
attr_data |
Deprecated argument. Please use 'attr_actors' instead. |
See sp.
sp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")sp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
unique |
A logical value indicating whether to sum the minimum of events with third actors (FALSE, default) or the number of third actors that create a new, unique shared partner (TRUE). See details for more information. |
scaling |
the method for scaling the triad statistic. Default is to not scale the statistic but keep the raw 'counts'. Alternatively, standardization of the raw counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See stack_stats.
stack_stats(stats, reh, add_actors = TRUE)stack_stats(stats, reh, add_actors = TRUE)
stats |
A |
reh |
A |
add_actors |
Logical (default |
See tie.
tie(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)tie(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)
variable |
A string specifying the attribute to compute the statistic. If |
attr_dyads |
A |
scaling |
The method for scaling the statistic. The default is no scaling. Alternatively, standardization of the statistic per time point can be requested with "std". |
x |
Deprecated argument. Please use 'attr_dyads' instead. |
variableName |
Deprecated argument. Please use 'variable' instead. |
See tie_effects.
tie_effects(directed = NULL, endogenous = NULL)tie_effects(directed = NULL, endogenous = NULL)
directed |
logical value. The function outputs all statistics in the tie-oriented model for directed events if true, or all statistics in the tie-oriented model for undirected events if false. |
endogenous |
logical value. The function outputs all endogenous statistics in the tie-oriented model if true, or all exogenous statistics if false |
See tomstats.
tomstats( tie_effects, reh, memory = c("full", "window", "decay", "interval"), memory_value = NA, first = 2, last = Inf, display_progress = FALSE, sampling = FALSE, samp_num = 10L, seed = NULL, attr_actors = NULL, attr_dyads = NULL )tomstats( tie_effects, reh, memory = c("full", "window", "decay", "interval"), memory_value = NA, first = 2, last = Inf, display_progress = FALSE, sampling = FALSE, samp_num = 10L, seed = NULL, attr_actors = NULL, attr_dyads = NULL )
tie_effects |
an object of class |
reh |
an object of class |
memory |
The memory to be used. See ‘Details’. |
memory_value |
Numeric value indicating the memory parameter. Default
is |
first |
an optional integer value, specifying the index of the first
unique time point event in the relational event history for which statistics must be
computed (see 'Details'). Default is |
last |
an optional integer value, specifying the index of the last unique time point in the relational event history for which statistics must be computed (see 'Details') |
display_progress |
should a progress bar for the computation of the endogenous statistics be shown (TRUE) or not (FALSE)? |
sampling |
Logical. If |
samp_num |
Integer. Number of dyads to include per event when
|
seed |
Optional integer. Random seed used for dyad sampling. Setting
this ensures reproducible sampling across calls. If |
attr_actors |
optionally, an object of class
|
attr_dyads |
optionally, an object of class |
See totaldegreeDyad.
totaldegreeDyad(scaling = c("none", "prop", "std"), consider_type = "ignore")totaldegreeDyad(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by two times the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See totaldegreeReceiver.
totaldegreeReceiver( scaling = c("none", "prop", "std"), consider_type = "ignore" )totaldegreeReceiver( scaling = c("none", "prop", "std"), consider_type = "ignore" )
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by two times the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See totaldegreeSender.
totaldegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")totaldegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
scaling |
the method for scaling the degree statistic. Default is to not scale the statistic (scaling = "none"). Alternatively, scaling of the raw degree counts by two times the number of past events at time t can be requested with 'prop' or standardization of the raw degree counts per time point can be requested with 'std'. |
consider_type |
character. Controls how event types are handled:
|
See userStat.
userStat(x, variableName = NULL)userStat(x, variableName = NULL)
x |
Matrix with number of rows equal to the number of events and number of columns equal to the number of dyads in the network (tie-oriented model) or the number of actors in the network (actor-oriented model) |
variableName |
Optionally, a string with the name of the statistic. |