data(faux.magnolia.high)
faux.magnolia.high
is a network
object with 1461 vertices
(students, in this case) and 974 undirected edges (mutual friendships). To
obtain additional summary information about it, type
summary(faux.magnolia.high)
.The vertex attributes are Grade
, Sex
, and Race
. The Grade
attribute has values 7 through 12, indicating each student's grade in school.
The Race
attribute is based on the answers to
two questions, one on Hispanic identity and one on race, and takes six possible
values:
White (non-Hisp.), Black (non-Hisp.), Hispanic, Asian
(non-Hisp.), Native American, and Other (non-Hisp.)
The two schools in question (a junior and senior high school in the same community) were combined into a single network dataset. Students who did not take the AddHealth survey or who were not listed on the schools' student rosters were eliminated, then an undirected link was established between any two individuals who both named each other as a friend. All missing race, grade, and sex values were replaced by a random draw with weights determined by the size of the attribute classes in the school.
The following ergm
model was fit to the original data:
magnolia.fit <- ergm (magnolia ~ edges + nodematch("Grade",diff=T) + nodematch("Race",diff=T) + nodematch("Sex",diff=F) + absdiff("Grade") + gwesp(0.25,fixed=T), burnin=10000, interval=1000, MCMCsamplesize=2500, maxit=25, control=control.ergm(steplength=0.25))
Then the faux.magnolia.high dataset was created by simulating a single network from the above model fit:
faux.magnolia.high <- simulate (magnolia.fit, nsim=1, burnin=100000000, constraint = "edges")
When publishing results obtained using this data set, the original authors (Resnick et al, 1997) should be cited. In addition this package should be cited as:
Mark S. Handcock, David R. Hunter, Carter T. Butts, Steven M. Goodreau,
and Martina Morris. 2003
statnet: Software tools for the Statistical Modeling of Network Data
network
, plot.network
,
ergm
, faux.mesa.high