Repository navigation
nwcommands 3.30.0
Added
nwdegree, plot: the degree distribution as a graph (histogram of the generated degree variable; outdegree and indegree side by side for a directed network);ccdfdraws P(degree >= k) on log-log axes;standardizeis respected;name(),saving(),export()and graph options as in the plot convention. One one-mode network (two-mode, a list of networks, and a valued network withoutbinarystop with error 198). Withoutplotthe extra options are still the tabulate options.nwgeodesic, plot: histogram of the finite geodesic distances (number of pairs at each whole distance, unconnected pairs counted in a note),averagemarks the mean distance of the connected pairs; the graph name option isgname()becausename()is the distance network. Two-mode and valued networks (withoutbinary/alpha(0)) stop with error 198.nwdiffuse curve, plot(cumulative|new|both):newdraws the new adopters per period as bars,boththe cumulative proportion and the bars side by side; plainplotandgraphdraw the cumulative line as before.nwspectral, plot: scree plot of the Laplacian eigenvalues with the algebraic connectivity marked;embeddingadds the second and third eigenvector as a scatter. Two-mode and directed networks stop with error 198.nwtriads, plot expected: the expected count of every triad type under random dyad types with the dyad census fixed (the uniform distribution on networks with the same dyad census, closed form) is written under the observed count.- Help files, dialogs and
cscripts/test_nwcore_plots2.dofor these options; examples of the ordered matrix (nwplotmatrix, sortby() group()) in the help files ofnwcoreperiphery,nwfactionsandnwconcor. - Dialogs:
name,savingandexportentries in thenwdendrogramdialog,savingandexportentries (tab Save/export) in thenwplotmatrixdialog, anameentry in thenwmixingdialog; thenamefield of thenwcorrelatedialog says that it also names the graph of the permutations.cscripts/test_dlg_plots.dochecks that the dialogs of all plot commands carry their plot options and that the command line a dialog emits runs.
Tested on macOS (Stata 17), on Linux (Ubuntu 22.04) and on Windows 11 (both StataNow 19.5 MP): the tests of the new plot options, the dialog tests and the plot tests of every changed command; on Linux and on Windows the export widths of the new plots (nwdegree, nwgeodesic, nwspectral, nwdiffuse curve, plot(both), nwtriads with expected) were measured exactly, and Windows was also run from a folder with a space in its name. Stata 18 on the Mac was not run for this release.