| Title: | Comprehensive Tools for Relational Event History Data |
| Version: | 0.2.0 |
| 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. |
| License: | MIT + file LICENSE |
| BugReports: | https://github.com/TilburgNetworkGroup/remverse/issues |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.3.3 |
| Imports: | remify (≥ 4.1.0), remstats (≥ 4.1.0), remstimate (≥ 3.1.0) |
| Depends: | R (≥ 4.0), remdata (≥ 0.2.1) |
| Suggests: | tinytest, knitr, rmarkdown, survival, coxme, lme4, glmmTMB, glmnet, flexmix, shrinkem (≥ 0.4.0) |
| LazyData: | true |
| VignetteBuilder: | knitr |
| LazyDataCompression: | gzip |
| NeedsCompilation: | no |
| Packaged: | 2026-07-18 18:09:57 UTC; jorismulder |
| Author: | 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 <j.mulder3@tilburguniversity.edu> |
| Repository: | CRAN |
| Date/Publication: | 2026-07-18 18:40:02 UTC |
remverse: Comprehensive Tools for Relational Event History Data
Description
A unified interface for relational event history analysis. remverse re-exports key functions from remify, remstats, and remstimate, and depends on remdata so its example datasets are available once remverse is attached.
Details
The @import remdata below declares remdata in the package namespace. It is
a Depends (attached for its datasets), and importing it here satisfies
R CMD check's requirement that a Depends package also be imported, so the
namespace resolves correctly when remverse is loaded but not attached.
Author(s)
Maintainer: Joris Mulder j.mulder3@tilburguniversity.edu
Authors:
Giuseppe Arena g.arena@tilburguniversity.edu
Marlyne Meijerink-Bosman m.l.meijerink@tilburguniversity.edu
Rumana Lakdawala r.j.lakdawala@tilburguniversity.edu
Roger Leenders r.t.a.j.leenders@tilburguniversity.edu
Fabio Generoso Vieira f.v.generosovieira@tilburguniversity.edu
Mahdi Shafiee Kamalabad m.shafiee@tilburguniversity.edu
Other contributors:
Diana Karimova d.karimova@tilburguniversity.edu [contributor]
See Also
Useful links:
Report bugs at https://github.com/TilburgNetworkGroup/remverse/issues
AICC
Description
See AICC.
Usage
AICC(object, ...)
Arguments
object |
is a |
... |
further arguments to be passed to the 'AICC' method. |
FEtype
Description
See FEtype.
Usage
FEtype()
WAIC
Description
See WAIC.
Usage
WAIC(object, ...)
Arguments
object |
is a |
... |
further arguments to be passed to the 'WAIC' method. |
activeDegreeDyad
Description
See activeDegreeDyad.
Usage
activeDegreeDyad(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeDegreeMax
Description
See activeDegreeMax.
Usage
activeDegreeMax(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeDegreeMin
Description
See activeDegreeMin.
Usage
activeDegreeMin(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeIndegreeReceiver
Description
Usage
activeIndegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeOutdegreeSender
Description
Usage
activeOutdegreeSender(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeReciprocalTie
Description
See activeReciprocalTie.
Usage
activeReciprocalTie(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeSharedPartners
Description
See activeSharedPartners.
Usage
activeSharedPartners(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeSharedPartners_isp
Description
Usage
activeSharedPartners_isp(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeSharedPartners_itp
Description
Usage
activeSharedPartners_itp(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeSharedPartners_osp
Description
Usage
activeSharedPartners_osp(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeSharedPartners_otp
Description
Usage
activeSharedPartners_otp(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTie
Description
See activeTie.
Usage
activeTie(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTotaldegreeDyad
Description
Usage
activeTotaldegreeDyad(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTotaldegreeReceiver
Description
See activeTotaldegreeReceiver.
Usage
activeTotaldegreeReceiver(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
activeTotaldegreeSender
Description
Usage
activeTotaldegreeSender(scaling = c("none", "std"), consider_type = "ignore")
Arguments
scaling |
Scaling applied to the raw statistic before returning:
|
consider_type |
Character (or logical). How event types are handled:
|
actor_effects
Description
See actor_effects.
Usage
actor_effects(step = NULL)
Arguments
step |
outputs all statistics in the sender activity step (if 'step = sender') or receiver choice step (if 'step = receiver'). |
ao_data
Description
See ao_data.
aomstats
Description
See aomstats.
Usage
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
)
Arguments
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 |
average
Description
See average.
Usage
average(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
Arguments
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. |
bic_table
Description
See bic_table.
Usage
bic_table(x, ...)
Arguments
x |
A |
... |
Unused. |
bind_remstats
Description
See bind_remstats.
Usage
bind_remstats(...)
Arguments
... |
Any number of |
degreeDiff
Description
See degreeDiff.
Usage
degreeDiff(scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
degreeMax
Description
See degreeMax.
Usage
degreeMax(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
degreeMin
Description
See degreeMin.
Usage
degreeMin(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
diagnostics
Description
See diagnostics.
Usage
diagnostics(object, reh, stats, ...)
Arguments
object |
is a |
reh |
is a |
stats |
is a |
... |
further arguments to be passed to the 'diagnostics' method. |
difference
Description
See difference.
Usage
difference(
variable,
attr_actors = NULL,
scaling = c("none", "std"),
absolute = TRUE,
attr_data
)
Arguments
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. |
dlcrem
Description
See dlcrem.
Usage
dlcrem(reh, stats, k = 2L, nrep = 3L, ...)
Arguments
reh |
A |
stats |
A |
k |
Number of latent classes (default 2). |
nrep |
Number of random restarts (default 3). |
... |
Additional arguments passed to |
dyad
Description
See dyad.
Usage
dyad(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)
Arguments
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. |
Example relational event history with duration
Description
A small directed relational event history where each event has a known start and end time, suitable for duration modeling.
Usage
data(edgelist_duration)
Format
A data frame with columns:
- time
Event start time.
- actor1
Sender.
- actor2
Receiver.
- end_time
Event end time.
Examples
data(edgelist_duration)
reh <- remify(edgelist_duration, duration = TRUE)
event
Description
See event.
Usage
event(variable, event_attr)
Arguments
variable |
string with the name of the column in the event_attr object for which the statistic has to be computed. |
event_attr |
an object of class data.frame that contains the attribute |
frailty_rem
Description
See frailty_rem.
Usage
frailty_rem(reh, stats, ...)
Arguments
reh |
A |
stats |
A |
... |
Additional arguments passed to |
history_durem
Description
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.
Usage
history_durem
Format
A data frame with 115 rows and 6 columns:
- time
Start time of the event (seconds)
- actor1
Initiating actor ID
- actor2
Receiving actor ID
- setting
Context:
"work"or"social"- weight
Intrinsic event weight
- end
End time of the event (
NA= right-censored)
indegreeReceiver
Description
See indegreeReceiver.
Usage
indegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
indegreeSender
Description
See indegreeSender.
Usage
indegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
inertia
Description
See inertia.
Usage
inertia(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
Exogenous information of 5 actors
Description
A dataset containing the (hypothetical) age of the actors in a social
network of a relational event history randomREH3.
Usage
data(info3)
Format
A dataframe with 7 rows and 4 variables:
- name
numeric id of the actor
- time
numeric value, describes when the value of the covariate changes, if it changes
- age
age of the actor
- sex
dichotomized sex of the actor (e.g., 0 = male, 1 = female)
See Also
randomREH3 for the relational event history.
is.remify_durem
Description
See is.remify_durem.
Usage
is.remify_durem(x)
Arguments
x |
Any R object. |
is.remstats_durem
Description
See is.remstats_durem.
Usage
is.remstats_durem(x)
Arguments
x |
Any R object. |
isp
Description
See isp.
Usage
isp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
itp
Description
See itp.
Usage
itp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
maximum
Description
See maximum.
Usage
maximum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
Arguments
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. |
minimum
Description
See minimum.
Usage
minimum(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
Arguments
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. |
osp
Description
See osp.
Usage
osp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
otp
Description
See otp.
Usage
otp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
outdegreeReceiver
Description
See outdegreeReceiver.
Usage
outdegreeReceiver(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
outdegreeSender
Description
See outdegreeSender.
Usage
outdegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
psABA
Description
See psABA.
Usage
psABA()
psABAB
Description
See psABAB.
Usage
psABAB(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABAY
Description
See psABAY.
Usage
psABAY(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABB
Description
See psABB.
Usage
psABB()
psABBA
Description
See psABBA.
Usage
psABBA(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABBY
Description
See psABBY.
Usage
psABBY(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABX
Description
See psABX.
Usage
psABX()
psABXA
Description
See psABXA.
Usage
psABXA(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABXB
Description
See psABXB.
Usage
psABXB(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
psABXY
Description
See psABXY.
Usage
psABXY(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
randomREH
Description
See randomREH.
Generated Relational Event History with Duration, Type, and Weight
Description
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.
Usage
data(randomREH3)
Format
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
socialorwork;durationthe duration of each event (
end - time), which can also serve as an event weight.
See Also
info3 for actor covariates.
receive
Description
See receive.
Usage
receive(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
Arguments
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. |
recencyContinue
Description
See recencyContinue.
Usage
recencyContinue(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
recencyReceiveReceiver
Description
Usage
recencyReceiveReceiver(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
recencyReceiveSender
Description
See recencyReceiveSender.
Usage
recencyReceiveSender(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
recencySendReceiver
Description
See recencySendReceiver.
Usage
recencySendReceiver(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
recencySendSender
Description
See recencySendSender.
Usage
recencySendSender(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
reciprocity
Description
See reciprocity.
Usage
reciprocity(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
remfrailty
Description
See remfrailty.
Usage
remfrailty(
reh,
stats,
approach = c("frequentist", "Bayesian"),
engine = "auto",
...
)
Arguments
reh |
A |
stats |
A |
approach |
Either |
engine |
For |
... |
Additional arguments passed to |
remify
Description
See remify.
Usage
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
)
Arguments
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 |
remixture
Description
See remixture.
Usage
remixture(reh, stats, random, k = 2L, concomitant = NULL, nrep = 3L, ...)
Arguments
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 |
rempenalty
Description
See rempenalty.
Usage
rempenalty(
reh,
stats,
approach = c("frequentist", "Bayesian"),
alpha = 1,
prior = "horseshoe",
nfolds = 10L,
lambda_select = c("1se", "min"),
...
)
Arguments
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 |
remstats
Description
See remstats.
Usage
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
)
Arguments
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 |
remstimate
Description
See remstimate.
Usage
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,
...
)
Arguments
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 ( |
remtribute
Description
See remtribute.
Usage
remtribute(
reh,
stats = NULL,
effects = NULL,
attribute = "type",
attribute_type = c("nominal", "ordinal", "numeric"),
attr_actors = NULL,
memory = "full",
memory_value = Inf,
...
)
Arguments
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
( |
remwindow
Description
See remwindow.
Usage
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,
...
)
Arguments
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 |
rrankReceive
Description
See rrankReceive.
Usage
rrankReceive(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
rrankSend
Description
See rrankSend.
Usage
rrankSend(consider_type = "ignore")
Arguments
consider_type |
character. Controls how event types are handled:
|
same
Description
See same.
Usage
same(variable, attr_actors = NULL, attr_data)
Arguments
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. |
select_stats
Description
See select_stats.
Usage
select_stats(
object,
tie_effects = NULL,
sender_effects = NULL,
receiver_effects = NULL,
start_effects = NULL,
end_effects = NULL
)
Arguments
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) |
send
Description
See send.
Usage
send(variable, attr_actors = NULL, scaling = c("none", "std"), attr_data)
Arguments
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. |
sp
Description
See sp.
Usage
sp(unique = FALSE, scaling = c("none", "std"), consider_type = "ignore")
Arguments
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:
|
spUnique
Description
See spUnique.
Usage
spUnique()
stack_stats
Description
See stack_stats.
Usage
stack_stats(stats, reh, add_actors = TRUE)
Arguments
stats |
A |
reh |
A |
add_actors |
Logical (default |
tie
Description
See tie.
Usage
tie(variable, attr_dyads = NULL, scaling = c("none", "std"), x, variableName)
Arguments
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. |
tie_data
Description
See tie_data.
tie_effects
Description
See tie_effects.
Usage
tie_effects(directed = NULL, endogenous = NULL)
Arguments
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 |
tomstats
Description
See tomstats.
Usage
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
)
Arguments
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 |
totaldegreeDyad
Description
See totaldegreeDyad.
Usage
totaldegreeDyad(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
totaldegreeReceiver
Description
See totaldegreeReceiver.
Usage
totaldegreeReceiver(
scaling = c("none", "prop", "std"),
consider_type = "ignore"
)
Arguments
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:
|
totaldegreeSender
Description
See totaldegreeSender.
Usage
totaldegreeSender(scaling = c("none", "prop", "std"), consider_type = "ignore")
Arguments
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:
|
userStat
Description
See userStat.
Usage
userStat(x, variableName = NULL)
Arguments
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. |