[statnet_help] Question about adding moderating effect in REM

Carter T. Butts buttsc at uci.edu
Tue Oct 17 19:06:01 PDT 2023


Hi, Choi -

To be clear, I presume that by "moderation" you mean an interaction
effect (i.e., a product term between e.g. the RRecSnd statistic and
another statistic).  This can be done, but currently it is DIY: what you
have to do is compute the statistics you want, and enter them as dynamic
edge (aka event) covariates.  (It is a basic property of these models
that any and all effects can be implemented as (dynamic) edge
covariates, which is a handy thing to keep in mind if you want to
implement your own statistics.)

There is an internal function accum.rrl that may be handy for this
purpose; it is part of the black magic of the package (and thus not very
documented), but can be used.  If you call accum.rrl with an eventlist,
it will return a list with two elements.  The first is a list, with one
entry per event in the data, whose ith entry is an ordered list of the
most recent senders for every node that has received an event (/going
into/ the ith event).  The second is the corresponding list for most
recent receivers for every node that has sent an event (again, the ith
entry is the state headed into the ith event).  Nodes that have never
sent/received by a given event do not have entries.  This function is
used "backstage" to help compute the hazards for RRecSnd and RSndSnd, so
can be helpful for you if you want to make your own term.  But of
course, it is just a tool for tabulation, and you can write your own if
you prefer.

Hope that helps!

-Carter

On 10/17/23 4:45 PM, SJ C wrote:

> Hi all,

>

> I am using REM(relevant event model) for the first time in my research

> project, and also this is my first time sending questions to statnet_help.

>

> My question is about entering a moderating effect in REM.

> I consulted REM tutorials uploaded in Statnet website and other

> workshop materials, but was not able to find relevant information.

>

> For instance, how can we test whether the RRecSnd effect is moderated

> by a particular attribute (e.g., education level) of the original

> sender in REM?

>

> It would be greatly appreciated if I can have any responses.

> Thank you!

>

> Sincerely,

> Choi

>

>

> _______________________________________________

> statnet_help mailing list

> statnet_help at u.washington.edu

> https://urldefense.com/v3/__http://mailman13.u.washington.edu/mailman/listinfo/statnet_help__;!!CzAuKJ42GuquVTTmVmPViYEvSg!PshxIW-NTXvNytOo2UNgN4BoECliq11-0VSkV_z-sFJoai8EOjfULJwZkLbKfA2fj43MiNC_6GfJ1WxJ9mMkHCpc$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20231017/00d8c4c7/attachment.html>


More information about the statnet_help mailing list