Entering Data
for Analysis by UCINET Software

 

 

The standard method for entering data to be analyzed by UCINET is to type it into a text file, using any wordprocessor such as Corel WordPerfect or Microsoft Word. After typing it in, save the file as a DOS TEXT file.

What goes in the file is basically some information about the data, which goes first, then the data itself.  There are several permissible formats.

 

Fullmatrix Format

In this format, you must type in the entire network adjacency matrix. The values must be separated by at least one space, and you may not use commas or other punctuation. For example:

DL N = 5
Data:
0 1 1 1 1
1 0 1 0 0
1 1 0 0 1
1 0 0 0 0
1 0 1 0 0

The "DL" at the beginning is required: it tells the program that this is a Data Language file, as opposed to some other kind of file (like UCINET 3.0 format). The "N=5" means that there are 5 nodes in the network, corresponding to 5 rows and columns in the matrix. The word "DATA:" (with the colon) indicates the end of header information (information about the data). 

 

Labels for the nodes can be added in the header section as follows:

dl n=5
format = fullmatrix
labels:
barry,david,lin,pat,russ
data:
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
0 1 0 1 0

Labels can be up to 18 characters in length, and cannot contain spaces or commas. They can be placed on different lines if you like:

dl n=5
format = fullmatrix
labels:
barry,david
lin,pat
russ
data:
0 1 1 1 0
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
0 1 0 1 0

 

The labels can also be embedded in the data itself, as follows:

dl n=5
format = fullmatrix
labels embedded
data:
larry david lin pat russ
Larry 0 1 1 1 0
david 1 0 0 0 1
Lin 1 0 0 1 0
Pat 1 0 1 0 1
Russ 0 1 0 1 0

Edgelist1 Format

When the data are sparse, it is often more convenient to to enter just the pairs of actors that are connected. In the edgelist1 format, each line of data is an ordered pair of actors, optionally followed by a value indicating the strength of the relationship.

DL n=5
format = edgelist1
labels:
george, sally, jim, billy, jane
data:
1 2
1 3
2 3
3 1
4 3

Or the labels can be included in the data themselves:

DL n=5
format = edgelist1
labels embedded:
data:
george sally
george jim
sally jim
billy george
jane jim

Nodes are numbered in the order of first appearance. To control the order of the nodes in the resulting data matrix, just include the labels in the header section and also embed them in the data:

DL n=5
format = edgelist1
labels:
george, sally, jim, billy, jane
labels embedded:
data:
george sally
george jim
sally jim
billy george
jane jim

 

Nodelist1 Format

In the nodelist1 format, you give the name or number of a node, followed by the names or numbers of every node that they are connected to, as follows:

DL n=5
format = nodelist1
labels:
george, sally, jim, billy, jane
data:
1 2 3
2 3
3 1
4 3

Or the labels can be included in the data themselves:

DL n=5
format = nodelist1
labels embedded:
data:
george sally jim
sally jim
billy george
jane jim

 

There are many other formats available: consult your UCINET manual.

 

Home Borgatti Analytic Technologies INSNA Connections