* -------------------------------------------------------------------------- * Network Analysis with Stata (Stata Press) * Chapter 3: From a research question to a network and a method * * All commands of the chapter, in the order in which the book prints them. * Requires Stata 17 or later and nwcommands (see Getting started: * net install nwcommands, from(https://nwcommands.org/net/) * nwinstall, everything * ). The data sets are loaded from the internet with nwwebuse. * The do-file runs from top to bottom. It was checked against nwcommands 3.34.0, * nwergm 1.12.0, nwsaom 1.9.1, nwrem 1.7.0, nwdynam 1.11.0, nwalaam 1.3.1, * nwlsm 1.0.5 and nwsbm 1.0.2, the versions the book was printed with. * Lines marked "setup" are not printed in the book but are needed to run it. * Commands that the book shows failing on purpose are run with capture noisily. * Do-files for all chapters: https://nwcommands.org/book/dofiles/ * -------------------------------------------------------------------------- clear all set more off * ============================================================ * Applying the checklist: the lawyers of one firm * ============================================================ nwwebuse lazega, nwclear tab office status nwdyads lazega_fr nwsym lazega_fr, generate(fr_or) mode(max) nwsym lazega_fr, generate(fr_and) mode(min)