This is an intructory tutorial on egocentric relational event modeling (EREM) going through the worked example in Marcum and Butts (2015) using their informR package and the relational event modeling package “relevent”. You can find the original paper and source code at Marcum & Butts (2015). The main difference here is that I’ve added interleaved my comments with the code. The example will however make a lot more sense if you read through Marcum and Butts’ paper first (and they also go into a lot more detail).
Calculating percentage of positive and negative agreement for a 2x2 contingency table (including Bayesian interval estimates)
Ci for rho with Fieller or Bonett-Wright correction
Egon Pearson N-1 correction to K Pearson Chi-square goodness of fit test
Code to demonstrate how one might plot NSS data using R
Helper function to extract VIF and other diagnostics from a model using the mutest package
R code for a CI of the difference between independent R square coefficients based on Zou (2007)