data(faux.mesa.high)
fmh.ego <- as.egor(faux.mesa.high)
(nw.summ <- summary(faux.mesa.high~edges+degree(0:3)+nodematch("Race")+
nodematch("Sex")+absdiff("Grade")+nodemix("Grade")))
(ego.summ <- summary(fmh.ego~edges+degree(0:3)+nodematch("Race")+nodematch("Sex")+
absdiff("Grade")+nodemix("Grade"),
scaleto=network.size(faux.mesa.high)))
stopifnot(isTRUE(all.equal(as.vector(nw.summ),as.vector(ego.summ))))
(ego.summ2 <- summary(fmh.ego ~ edges + meandeg + degree(0:2)))
vcov(ego.summ2)
ego.summ2 * 2 # edges and degrees scales, meandeg doesn't
vcov(ego.summ2 * 2)
Run the code above in your browser using DataLab