Just wanted to share sample code in case its helpful to understand my question.
Here is my code:
use "/home/hoori/CAC NYC.dta", clear
drop if School==""
*** Set as directed network by case using all observations identifying school-based staff
** UNHS network with all data
keep if School=="UNHS"
nwset ID EdgeID, edgelist directed keeporiginal name(UNHS1)
nwsummarize UNHS1, detail
nwsave UNHS1, replace
nwplot UNHS1, label(_nodeoriginal) title("Union High School Full Network Map")
The problem is, the data set "/home/hoori/NYC.dta" is constructed with each tie as one row as follows:
ID
Name School ActorAge ActorTenure ActorDepartment ActorFunction EdgeID
EdgeName EdgeDepartment EdgeFunction Strength Frequency
When I transform the data to network
data using nwset, I lose the variables ActorAge ActorTenure
ActorDepartment ActorFunction EdgeDepartment EdgeFunction Strength
Frequency. Is there a way to keep those so I can then do some analysis
using these variables, such as color code nodes based on their
department?