Glasgow friendship, wave 1, by smoking

Chapter 5, exercise.

The side panel needs about 900 pixels of width. On a phone or in a narrow window, open the page on its own.

What to try

Color is smoking at wave 1 (smoke1, three levels). Drag the most conspicuous girl to a new place, save the two CSV files and bring the layout back into Stata with nodexy(), importcoords() and edgeimport(). Which impression of the first picture survives the move, and which does not?

The Stata commands

. nwwebuse glasgow, nwclear
. set seed 42
. nwplot glasgow1, color(smoke1, colorpalette(gs12 orange cranberry)) ///
>     label(_nwnode) generate(x y) interactive noopen ///
>     fname(glasgow1_smoke_interactive.html)

Source

Data: an excerpt of the Teenage Friends and Lifestyle Study. See the data sets page.


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.