nwinstall
Install the dialogs, menus and the model packages
Syntax
nwinstall
[,
gui
remove
help
ado
ext
dialog
usermenu
update
downloadoff
menu(string)
all
path(string)
localcopy
from(string)
dest(string)
models
everything
nogui
dupcheck
modelpkg(namelist)
release(string)
modelsfrom(string)
buildplugin(namelist)
buildmata(namelist)
buildfrom(string)
buildkeep]
gui |
install the “Network Analysis” menu permanently on your Stata (the older name permanently still works); it is set up once, however often you type it - see The menu is installed once |
remove |
remove the “Network Analysis” menu from your Stata, the line nwinstall, usermenu from profile.do, and the nwcommands files |
help |
download the help files |
ado |
download the core command (.ado) files |
ext |
accepted for backward compatibility, does nothing (the “extension” commands it used to download separately - nwdissimilar, nwhierarchy, nwdendrogram - are ordinary commands shipped with every other ado/help install, and were never genuinely distinct from the rest of the package) |
dialog |
download the dialog boxes |
usermenu |
update menu items for dialog-boxes |
update |
refresh the installed menu (an internal, self-recursive flag: re-invokes nwinstall, help usermenu) |
downloadoff |
rebuild the menu from what is already installed, without downloading anything (used internally by profile.do integration; equivalent to usermenu for this purpose) |
menu(string) |
install in this menu; default = “stUser” |
all |
download the core commands, help files, and dialog boxes, and set up the menu (as gui); with nogui the menu is left out |
path(string) |
directory of the profile.do to edit; default: the folder where an existing profile.do is found (your home folder, PERSONAL or SITE), otherwise the folder Stata recommends: %USERPROFILE% on Windows, ~/Documents/Stata on macOS, PERSONAL on Unix |
localcopy |
install by copying files from an existing local nwcommands folder instead of downloading from GitHub - see Computers without internet access or admin rights below |
from(string) |
with localcopy: the local folder to copy nwcommands files from; default: the current directory |
dest(string) |
with localcopy: the local ado directory to copy files into; default: your PERSONAL ado directory (already on Stata’s ado path, so nothing further needs to be configured for the default case) |
models |
also install the four model packages nwsaom, nwergm, nwdynam and nwrem (see below); with remove they are uninstalled |
everything |
install the core (everything all installs) and the four model packages (what models installs) as one set, set up the menu (as gui), and show all five versions at the end |
nogui |
with all or everything: do not set up the menu and do not touch profile.do |
dupcheck |
report dialog files (.dlg) that exist in more than one folder of the ado path; changes nothing |
modelpkg(namelist) |
install only these model packages (any of nwsaom, nwergm, nwdynam, nwrem); can be used alone |
buildplugin(namelist) |
compile the native plugins of these packages on this computer (any of nwcommands, nwsaom, nwergm, nwdynam; all for all four) and install them; macOS and Linux; used alone |
buildmata(namelist) |
rebuild the Mata libraries of these packages with the Stata that is running (any of nwcommands, nwsaom, nwergm, nwdynam, nwrem; all for the core and every installed package); the repair if the shipped library was built by a newer Stata; used alone |
buildfrom(string) |
with buildplugin() or buildmata(): a folder or URL with one subfolder per package that holds the source (native/ for the plugins, the unw_*.do files for the Mata libraries); default: the GitHub repositories |
buildkeep |
with buildplugin() or buildmata(): keep the build folder (it holds the build log) |
release(string) |
with models or modelpkg(): the release to install, for example v1.0.0; default: the current release |
modelsfrom(string) |
with models: a folder or URL with one subfolder per package, instead of the GitHub repositories (for local clones and offline installs) |
Description
This command loads Stata dialog boxes for the nwcommands and installs a menu “Network Analysis” inside the “User” menu. Almost all nwcommands (and their functions) can be executed via dialog boxes. Notice, however, that some more advanced functions are only available through Stata syntax (see nwcommands).
Supported network types
Not applicable - installs/manages this package’s own Stata menu, dialogs, and update mechanism; does not read or depend on any network’s own content, directed/valued/two-mode status, or tie values.
nwcommands version 3.17.6, 9 November 2026 (check your installed version)