stocnet/rsiena

Some problems encountered in the use of SAOM

Closed this issue · 0 comments

Hello everyone, I've recently been using Rsiena to analyze data from single-mode and two-mode networks, but I seem to be running into some problems, so please help me out.

Note: All networks are undirected

Reference Paper: Koskinen, Johan, and Tom AB Snijders. "Multilevel longitudinal analysis of social networks." Journal of the Royal Statistical Society Series A: Statistics in Society 186.3 (2023): 376-400.

In this article, there is a reference to ”id“ effect, "od" effect,"odd"effect, and "idXod" effect, My question is, is it possible that I want to use these effects in my single-mode network and my two-mode network? How should I go about writing the code?

The key code for this part of the article is as follows:
effsr <- setEffect(effsr, outActIntn, name="friends", interaction1="del", parameter=1) effsr <- setEffect(effsr, outPopIntn, name="friends", interaction1="del", parameter=1) effsr <- includeInteraction(effsr, outActIntn, outPopIntn, name="friends", interaction1=c("del","del"), parameter=1) effsr <- setEffect(effsr, from, name="friends", interaction1="del")

When I run the third line of code, it prompts:
Error in includeInteraction(effects, outActIntn, outPopIntn, name = "networkB", :
Third effect not found
**
I don't know why this happened.