Random Effects Models For Network Data