How to Use‎ > ‎

FAQs & Tips

Archive of tips, tricks and answers to frequently asked questions about using UCINET. You can scroll through (the full posts are at the bottom of the page) but you can also search this site (see button on top right of page). 

Frequently-asked questions about using UCINET

  • Missing values and centrality measures No centrality measure in UCINET distinguishes between missing values and zeros. For example, if your adjacency matrix has a row of missing values indicating that the node did not fill ...
    Posted Jun 17, 2014, 7:32 AM by Steve Borgatti
  • Which centrality measures handle valued data? The measures that understand values are eigenvector, beta centrality (aka Bonacich Power), Hubbell, Katz, PN, flow betweenness, simple degree, information centrality and political independence. Beta centrality is the most general ...
    Posted Jun 17, 2014, 7:26 AM by Steve Borgatti
  • Importing data from online survey software Here's a short video that shows you how to go from a messy, raw excel file produced by an online survey tool, to a ucinet system file. Importing network ...
    Posted Jun 13, 2014, 10:32 AM by Steve Borgatti
  • Node labels missing in NetDraw A year or two ago, ucinet and netdraw were upgraded to allow Unicode labels (to represent Chinese characters, etc). A consequence of this is that if you try to open ...
    Posted Jun 11, 2014, 11:12 AM by Steve Borgatti
  • Get the distance to a node or set of nodes Suppose you want to measure, for each node in the network, how many links away they are from the three most important nodes. How do you do it? First, you ...
    Posted May 28, 2014, 3:35 PM by Steve Borgatti
  • Windows/Notepad settings for UCINET There are several Windows and Notepad settings that make working with UCINET better. Here are a few:Tell Windows to show file extensions. Here's how.Sort by Date Modified ...
    Posted Mar 17, 2014, 6:03 PM by Steve Borgatti
  • The datafiles and UCINET Data folders When you install UCINET, you will find there is a folder containing the standard UCINET datasets in this folder:C:\Program Files (x86)\Analytic Technologies\datafiles However, you should not ...
    Posted Jan 19, 2014, 8:33 AM by Steve Borgatti
  • Accuracy measures in CSS routine The current CSS routine outputs individual-level accuracy measures. These measure the agreement between an individual's perception of the network (their "slice") with the "true" network. Pearson. This is ...
    Posted Aug 2, 2013, 8:28 AM by Steve Borgatti
  • Network analyses via matrix algebra commands The matrix algebra facility in UCINET is probably better thought of as a command-line interface. It is especially useful because you can enter the commands in a text file ...
    Posted Jul 28, 2013, 2:08 PM by Steve Borgatti
  • Installing UCINET on a Mac or Linux machine using Wine UCINET is a Windows program. To run it on another platform you will need a Windows partition (such as Boot Camp), a Windows emulator (such as VMware Fusion or Parallels ...
    Posted Jan 17, 2014, 6:59 AM by Steve Borgatti
  • Running Pajek from within UCINET Before you can execute Pajek from UCINET, you need to tell UCINET where to find the pajek.exe file. In the UCINET main menu, go to Options|Helper Applications, which ...
    Posted May 5, 2013, 2:43 PM by Steve Borgatti
  • Repeating subgroup analysis on multiple datasets [For UCINET 6.458 or later]Suppose you need find subgroups in 200 separate networks. The networks involve different nodes, so they can't be stacked into one UCINET dataset ...
    Posted Jan 27, 2013, 11:21 AM by Steve Borgatti
  • Entering Data Using the DL Editor The DL editor is the recommended way of entering data into UCINET. Please see the attached Doc file "Entering Data Using the DL Editor.docx" and its accompanying Excel file ...
    Posted Feb 10, 2013, 2:54 PM by Steve Borgatti
  • Allowable filenames Currently, UCINET does not allow filenames to contain periods (".") other than the one preceding "##H" or "##D". Spaces and other punctuation are allowed (assuming they are allowed by Windows). 
    Posted Dec 8, 2012, 9:12 AM by Steve Borgatti
  • Problems installing and/or running UCINET for first time One source of UCINET start-up issues is user permissions. These can lead to problems both in registering the program and in running any procedure that yields textual output. Registering ...
    Posted Nov 4, 2012, 1:02 PM by Steve Borgatti
  • Combining similar relations The attached Word document (see below) discusses how to combine a set of relations that are thought to be empirically similar, such as "likes", "respects", "socializes with" .  
    Posted Oct 20, 2012, 1:23 PM by Steve Borgatti
  • What are the ##h and ##d files? UCINET stores each logical dataset (called, say, CAMPNET) as a combination of two physical files (CAMPNET.##H and CAMPNET.##D). The ##h and ##d files together make one dataset, so ...
    Posted Oct 20, 2012, 12:42 PM by Steve Borgatti
  • How to register the program When you buy the program, you receive a registration code. After downloading and installing UCINET, you must then start the program, go to Help on the main menu, and choose ...
    Posted Nov 4, 2012, 1:03 PM by Steve Borgatti
  • Using the FORFILES command ForFiles command in Matrix AlgebraLets you repeat a command for a series of files that are similarly named, as in "samplk1", "samplk2", "samplk3"Syntax is ->forfiles <filemask> <command with ...
    Posted May 26, 2014, 1:14 PM by Steve Borgatti
  • Keyboard shortcuts for UCINET functions General Commands   Open Previous Log File Control + O Exit Program Alt + X Open Text Editor Control + E Repeat Last Command Alt + Backspace Open Matrix Algebra Command Window  Control + G     Data ...
    Posted Jun 27, 2012, 10:08 AM by Steve Borgatti
  • Sorting files in descending order by date modified Having Windows automatically sort files in descending order by data modified is extremely helpful when using UCINET. The program produces a number of outputs and rather than remember them it ...
    Posted Jan 20, 2014, 2:35 PM by Steve Borgatti
  • Using the matrix algebra batch command Batch commandThis lets you store and execute sequences of commands -- in short, macros or programs.Syntax is ->Batch <filename> where <filename> is the name of a text file containing ...
    Posted Jan 26, 2013, 12:12 PM by Steve Borgatti
Showing posts 1 - 22 of 22. View more »

Missing values and centrality measures

posted Jun 17, 2014, 7:32 AM by Steve Borgatti

No centrality measure in UCINET distinguishes between missing values and zeros. For example, if your adjacency matrix has a row of missing values indicating that the node did not fill out the survey, the centrality measures will treat that as a row of zeros, like an isolate. In general, this is not a problem as long as you remember to do one very important thing: after calculating centrality, you must recode the centrality scores for all nodes with missing values to missing. For example, the missing nodes will probably have centrality scores of zero. This is incorrect -- in reality we don't know what their centrality is, so we should recode it to missing before doing any correlations or other statistical work with the centrality scores.

Which centrality measures handle valued data?

posted Jun 17, 2014, 7:26 AM by Steve Borgatti

The measures that understand values are eigenvector, beta centrality (aka Bonacich Power), Hubbell, Katz, PN, flow betweenness, simple degree, information centrality and political independence. Beta centrality is the most general and easiest to work with.

Importing data from online survey software

posted Jun 13, 2014, 10:32 AM by Steve Borgatti

Here's a short video that shows you how to go from a messy, raw excel file produced by an online survey tool, to a ucinet system file. 

Node labels missing in NetDraw

posted Jun 11, 2014, 11:12 AM by Steve Borgatti

A year or two ago, ucinet and netdraw were upgraded to allow Unicode labels (to represent Chinese characters, etc). A consequence of this is that if you try to open a newer ucinet dataset with an old version of netdraw, the netdraw program would not be able to read the labels. You can cure this by taking two steps. First, download and install the latest ucinetsetup.exe. Second, in ucinet, go to Options|Helper Applications and make sure the pathname for netdraw is C:\Program Files (x86)\Analytic Technologies\netdraw.exe, as in : 


If you don't do this, it is possible that ucinet will try to run an old version of netdraw that is elsewhere on your hard disk. You should also remove any old desktop icons you might have that link to old versions of netdraw.

Get the distance to a node or set of nodes

posted May 28, 2014, 2:57 PM by Steve Borgatti   [ updated May 28, 2014, 3:35 PM ]

Suppose you want to measure, for each node in the network, how many links away they are from the three most important nodes. How do you do it? First, you need to make a list of the important nodes. Suppose the dataset is campnet and the nodes are Pat, Steve and Russ. Now, you need to compute geodesic distances. In the ucinet command line (matrix algebra), type:

->geo = geodesic(campnet)

This tells you how many links each person is away from everyone else. Now we need to narrow it down to Pat, Steve and Russ. We do this:

->y = col(geo pat steve russ)

So Y has the distances from each person to each of the key nodes. Next, we have to decide what exactly we want -- the average of a person's distance to pat, steve, and russ? or perhaps the minimum? Let's assume minimum. Type:

->z = wmin(y row)
->dsp z

The vector Z gives the distance from each person to the closest of the three key players. We could have chosen the average instead:

->z = wavg(y row)

Note that these are distances from a node to the key nodes. In many cases, this might not be as interesting as distances to a node from the key nodes. To do that, we would simply start the process by calculating the transpose of the distance matrix:

-->geo = transpose(geodesic(campnet))

Windows/Notepad settings for UCINET

posted Jan 20, 2014, 1:44 PM by Steve Borgatti   [ updated Mar 17, 2014, 6:03 PM ]

There are several Windows and Notepad settings that make working with UCINET better. Here are a few:
  • Tell Windows to show file extensions. Here's how.
  • Sort by Date Modified. Set Windows Explorer to automatically sort files by date modified (most recent to least recent). Here's how.
  • Courier New font. By default, UCINET displays textual output by using Windows Notepad. Numbers in tables will line up only if you use a non-proportional spacing font such as Courier New. Once you set the font, by the way, it will stick, so all of your outputs will look right from then on.
  • Word Wrap. By default, Windows Notepad has Word Wrap turned on. This makes it hard to read tables of numbers. Turning it off cleans things up.
  • Regional settings. If you are having trouble importing and/or cutting and pasting data, you might try temporarily changing regional settings to US.
BTW, this page has many useful suggestions about basic Windows settings, though not related to UCINET.

The datafiles and UCINET Data folders

posted Jan 19, 2014, 8:33 AM by Steve Borgatti

When you install UCINET, you will find there is a folder containing the standard UCINET datasets in this folder:

C:\Program Files (x86)\Analytic Technologies\datafiles

However, you should not try to work out that folder. Recent versions of Windows are normally set up to prevent users from writing to that folder. Instead, use the folder called "UCINET Data" that is under your "my documents" folder, which is automatically created by the ucinet installation procedure. For example, on my machine the folder is this:

C:\Users\sborgatti\Documents\UCINET data

Of course, your username is likely to be different, unless you are very creepy. 

Accuracy measures in CSS routine

posted Aug 2, 2013, 8:28 AM by Steve Borgatti

The current CSS routine outputs individual-level accuracy measures. These measure the agreement between an individual's perception of the network (their "slice") with the "true" network. 
  • Pearson. This is the pearson correlation between a respondent's slice and the true matrix. 
  • Identity. This is a measure of similarity discussed by Zegers and ten Berge (1985). 
  • Jaccard. A measure of similarity that ignores 0s. In a cross-tab of the true matrix against a respondent's matrix, Jaccard is a/(a+b+c)
  • Precision. This measures how often, when a person percieves a tie, it is actually there. It is a/(a+b)
  • Recall. This measures how often, when a tie exists, a person perceives it. It is a/(a+c)
References
  • Zegers, F. E., & ten Berge, J. M. F. (1985). A family of association coefficients for metric scales. Psychometrika, 50(1), 17-24 [PDF]
  • See wikipedia entry about precision and recall measures

Network analyses via matrix algebra commands

posted Jun 23, 2013, 3:58 PM by Steve Borgatti   [ updated Jul 28, 2013, 2:08 PM ]

The matrix algebra facility in UCINET is probably better thought of as a command-line interface. It is especially useful because you can enter the commands in a text file and then run them automatically (see this page on the batch capability). Here are some of the commands that are available, focusing on the more "networky" capabilities. 

In this documentation, we often use the standard dataset "campnet" as an example. It is a directed graph. We also use campsym, which is just an undirected version, calculated by typing

-->campsym  = symmet(campnet)

Centrality (and related) Measures

These are routines where the output is a value for each node. 

Beta Centrality. Calculates Bonacich's (1987) power measure.

-->liked = transpose(campnet)
-->liked-beta = betacent(liked)    // value of beta is automatically set to 0.995/max eigenvalue
-->liked-b05 = betacent(liked 0.5)   // user chooses the value of beta to be 0.5
-->liked-betacent = betacent(liked 0 auto 0.05)  // centrality is calculated for many values of beta: 0, 0.05, 0.10, 0.15 .... 0.995/maxeigen

Betweenness. Calculates Freeman's betweenness centrality. 

-->campnet-bet = betweenness(campnet)

Degree. Calculates indegree and outdegree (or just degree in the case of undirected graphs). 

-->campnet-deg = degree(campnet)

Centrality. Calculates a variety of centrality measures.

-->campnet-cent = centrality(campnet)

Egonet Density. Calculates the density of each node's ego network. Same as a node-level clustering coefficient.

-->campnet-egoden = egodensity(campnet)

Detecting Subgroups/Clusters
These procedures either produce a partition of nodes into groups, expressed as a categorical vector, or an actor-by-cluster membership matrix. 

Cliques. Identifies all of cliques of a given size or greater and saves an actor-by-clique indicator matrix.

-->campsym = symmetrize(campnet)
-->camp-cliq = cliques(campsym 3)   // output only cliques of size 3 or greater

n-Cliques. Identifies all of n-cliques of a given size or greater and saves an actor-by-clique indicator matrix. You must choose the value of n.

-->camp-cliq = ncliques(campsym 2 3)   // outputs all 2-cliques of size 3 or greater

k-Core Level. Finds the k of the highest level k-core that a node participates in 

-->camp-klev= kcorelev(campsym 2 3)   // outputs all 2-cliques of size 3 or greater

Newman Community Detection. Partitions nodes into k classes so as to maximize Q modularity statistic using Newman's agglomeration method.

-->camp-ncd = ncd(campsym 3)   // here the 3 indicates that you want a 3-cluster partition

Factions. Partitions nodes into k classes so as to maximize Q modularity statistic using a tabu search combinatorial optimization method. Not suitable for large datasets.

-->camp-fac = factions(campnet 3)   // here the 3 indicates that you want a 3-cluster partition

Factions. Partitions nodes into k classes so as to maximize Q modularity statistic using a tabu search combinatorial optimization method. Not suitable for large datasets.

-->camp-fac = factions(campnet 3)   // here the 3 indicates that you want a 3-cluster partition

Miscellaneous Measures

Density. Computes the density of input networks.

-->camp-den = density(campnet)
-->samp-den = density(sampson)

Geodesic distances. Computes the geodesic distance between all pairs of nodes. By default, undefined distances are assigned missing values.

-->camp-geo = geo(campnet)

Installing UCINET on a Mac or Linux machine using Wine

posted May 18, 2013, 9:41 AM by Steve Borgatti   [ updated Jan 17, 2014, 6:59 AM ]

UCINET is a Windows program. To run it on another platform you will need a Windows partition (such as Boot Camp), a Windows emulator (such as VMware Fusion or Parallels), or a "compatibility layer" such as Wine. Boot Camp and the emulators work best: Wine does not allow full functionality (such as calling Excel from within UCINET, or using shortcut keys) but it is free. Here are instructions for running UCINET with Wine.

1-10 of 22