Simple network analysis with UCINET

52
Simple Network Analysis Simple Network Analysis with UCINET with UCINET Mo Mo - - Han Hsieh Han Hsieh ESD.342 ESD.342 Feb. 28, 2006 Feb. 28, 2006 Engineering Systems Division Mo-Han Hsieh

description

UCINET tutorial, environment, basics links

Transcript of Simple network analysis with UCINET

Page 1: Simple network analysis with UCINET

Simple Network AnalysisSimple Network Analysis with UCINETwith UCINET

MoMo--Han HsiehHan HsiehESD.342ESD.342

Feb. 28, 2006Feb. 28, 2006

Engineering Systems Division Mo-Han Hsieh

Page 2: Simple network analysis with UCINET

AgendaAgenda

• UCINET Basics • The UCINET Environment• A Quick Demo • Import Data • Export Data • Data Processing • Tips of Using UCINET

Engineering Systems Division Mo-Han Hsieh

Page 3: Simple network analysis with UCINET

UCINET BasicsUCINET Basics

• Official User’s Guide of UCINET – http://www.analytictech.com/Ucinet_Guide.doc

• Official UCINET Tutorial – http://faculty.ucr.edu/~hanneman/nettext/

• Help in UCINET – Help > Help Topics

• Contents: Introduction Section, DL, and Standard Datasets.

• Index: search by keywords.

Engineering Systems Division Mo-Han Hsieh

Page 4: Simple network analysis with UCINET

The UCINET Environment (I)The UCINET Environment (I)

• Main window– File, Data, Transform, Tools, Network,

Options, and Help.

Engineering Systems Division Mo-Han Hsieh

Page 5: Simple network analysis with UCINET

The UCINET Environment (II)The UCINET Environment (II)

• The UCINET dataset – One dataset consists of Two files. – File with extension ##D: actual data. – File with ext. ##H: information about the data. – In referring to a dataset, refer to the .##H file.

Engineering Systems Division Mo-Han Hsieh

Page 6: Simple network analysis with UCINET

The UCINET Environment (III)The UCINET Environment (III)

• A typical UCINET procedure

Input Parameters Output TextProcedure

Input Datasets Output Datasets

• Output text in Log Files – File>View Previous Output…

Engineering Systems Division Mo-Han Hsieh

Page 7: Simple network analysis with UCINET

A Quick DemoA Quick Demo

• Dataset: KNOKBUR (.##H & .##D) • 10 organizations and two relationships.

– Directed graph. – Money exchange in one matrix, and

information exchange in the other.– See Knoke & Kuklinski (1982) for details.

Engineering Systems Division Mo-Han Hsieh

Page 8: Simple network analysis with UCINET

Main window: Data>Display…Main window: Data>Display…

Engineering Systems Division Mo-Han Hsieh

Page 9: Simple network analysis with UCINET

Data Set Filename:Data Set Filename: KNOKBUR.##HKNOKBUR.##H

Engineering Systems Division Mo-Han Hsieh

Page 10: Simple network analysis with UCINET

Output log #1Output log #1

Engineering Systems Division Mo-Han Hsieh

Page 11: Simple network analysis with UCINET

Main window: DrawMain window: DrawFile>Open>File>Open>UcinetUcinet dataset>Networkdataset>Network

Engineering Systems Division Mo-Han Hsieh

Page 12: Simple network analysis with UCINET

Name of file to open: KNOKBUR.##HName of file to open: KNOKBUR.##H

Engineering Systems Division Mo-Han Hsieh

Page 13: Simple network analysis with UCINET

Graph representation of the networkGraph representation of the network

Engineering Systems Division Mo-Han Hsieh

Page 14: Simple network analysis with UCINET

Main window:Main window: Network>Centrality>Degree…Network>Centrality>Degree…

Engineering Systems Division Mo-Han Hsieh

Page 15: Simple network analysis with UCINET

Input dataset: KNOKBUR.##HInput dataset: KNOKBUR.##H

Engineering Systems Division Mo-Han Hsieh

Page 16: Simple network analysis with UCINET

Output log #2Output log #2

Engineering Systems Division Mo-Han Hsieh

Page 17: Simple network analysis with UCINET

Main window:Main window: File>View Previous Output…File>View Previous Output…

Engineering Systems Division Mo-Han Hsieh

Page 18: Simple network analysis with UCINET

Main window:Main window:Data>Spreadsheets>MatrixData>Spreadsheets>Matrix

Engineering Systems Division Mo-Han Hsieh

Page 19: Simple network analysis with UCINET

UCINET Spreadsheet:UCINET Spreadsheet:File>Open>File>Open>FreemanDegree.##hFreemanDegree.##h

Engineering Systems Division Mo-Han Hsieh

Page 20: Simple network analysis with UCINET

Spreadsheet ofSpreadsheet of FreemanDegree.##hFreemanDegree.##h

Engineering Systems Division Mo-Han Hsieh

Page 21: Simple network analysis with UCINET

Import DataImport Data• UCINET spreadsheet

– Adjacency matrix – Manually input data or cut and paste from elsewhere

• From Excel file • DL format

– Full matrix & rectangular matrix – Multiple matrices – nodelist1 & nodelist2 – ranklist1 – edgelist1 & edgelist2

• More information about DL language – Main window: Help>Help Topics>Contents>DL

Engineering Systems Division Mo-Han Hsieh

Page 22: Simple network analysis with UCINET

UCINET spreadsheetUCINET spreadsheetData>Spreadsheets>MatrixData>Spreadsheets>Matrix

Engineering Systems Division Mo-Han Hsieh

Page 23: Simple network analysis with UCINET

Manually Input Adjacency MatrixManually Input Adjacency Matrix

Engineering Systems Division Mo-Han Hsieh

Page 24: Simple network analysis with UCINET

Import Adjacency Matrix from an Excel FileImport Adjacency Matrix from an Excel File

Engineering Systems Division Mo-Han Hsieh

Page 25: Simple network analysis with UCINET

Data>Import>Excel matrixData>Import>Excel matrix

Engineering Systems Division Mo-Han Hsieh

Page 26: Simple network analysis with UCINET

Excel file to import:Excel file to import: KNOKBUR_Example.xlsKNOKBUR_Example.xlsOutput dataset:Output dataset: KNOKBUR_ExampleKNOKBUR_Example

Engineering Systems Division Mo-Han Hsieh

Page 27: Simple network analysis with UCINET

DL Format: Full MatrixDL Format: Full Matrix

• Full Matrix Format

dl n=4 format=fullmatrix data: 0 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0

• Save it as a text file (e.g. TEST.txt).

Engineering Systems Division Mo-Han Hsieh

Page 28: Simple network analysis with UCINET

Data>Import>DL…Data>Import>DL…

Engineering Systems Division Mo-Han Hsieh

Page 29: Simple network analysis with UCINET

DL Format: Rectangular MatricesDL Format: Rectangular Matrices

dl nr = 6, nc = 4 data: 0 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0 1 0 1 1 1 1 0 0

Engineering Systems Division Mo-Han Hsieh

Page 30: Simple network analysis with UCINET

DL Format: LabelsDL Format: Labels

• DL file may contain labels of the nodes

dl n=4

labels: MIT, “MIT ESD”, MIT.ESD.342, ESD_Students

data: 0 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0

Engineering Systems Division Mo-Han Hsieh

Page 31: Simple network analysis with UCINET

DL Format: Multiple Matrices

dl n = 4, nm = 2labels:GroupA,GroupB,GroupC,GroupDmatrix labels:Marriage,Businessdata:0 1 0 11 0 0 00 0 1 01 0 0 1!0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0

Engineering Systems Division Mo-Han Hsieh

Page 32: Simple network analysis with UCINET

DL Format: External DataDL Format: External Data

• Data file can be read from other sources

dl n = 8

labels:a1,a2,a3,a4,a5,a6,a7,a8

datafile C:\DATA\External_Data.DAT

Engineering Systems Division Mo-Han Hsieh

Page 33: Simple network analysis with UCINET

DL Format: nodelist1 (I)DL Format: nodelist1 (I)

dl n = 4, format = nodelist1 labels: A,B,C,D data: 1 2 3 2 1 3 4 3 1 2 4 2

0010D 0011C 1101B 0110A DCBA

Resulting Matrix =>

Engineering Systems Division Mo-Han Hsieh

Page 34: Simple network analysis with UCINET

DL Format: nodelist1 (II)DL Format: nodelist1 (II)

dl n = 4, format = nodelist1 labels: A,B,C,D data: Resulting Matrix =>

1 2 3 A B C D 2 1 3 A 0 1 1 0 2 4 B 1 0 1 1 3 1 2 C 1 1 0 0 4 2 D 0 1 0 0

Engineering Systems Division Mo-Han Hsieh

Page 35: Simple network analysis with UCINET

DL Format: nodelist1 (III)DL Format: nodelist1 (III)

dl n = 4, format = nodelist1 labels embedded data: A B C B A C D C A B D B

0010D 0011C 1101B 0110A DCBA

Resulting Matrix =>

Engineering Systems Division Mo-Han Hsieh

Page 36: Simple network analysis with UCINET

DL Format: nodelist2DL Format: nodelist2

dl nr=3, nc=4 format = nodelist2 row labels embedded column labels embedded data: GP1 A B GP2 C D GP3 A D

1001GP3 1100GP2 0011GP1 DCBA

Resulting Matrix =>

Engineering Systems Division Mo-Han Hsieh

Page 37: Simple network analysis with UCINET

DL Format: ranklist1DL Format: ranklist1

dl n=4 format = ranklist1 labels embedded data: A B C B C D A C A B D D A C

0201D 3021C 2103B 0210A DCBAResulting Matrix =>

Engineering Systems Division Mo-Han Hsieh

Page 38: Simple network analysis with UCINET

DL Format: edgelist1DL Format: edgelist1

dl n=4 format = edgelist1 labels: A,B,C,D data: 1 2 1 1 3 2 2 1 1 Resulting Matrix => A B C D 2 3 1 A 0 1 2 0 2 4 B 1 0 1 1 3 1 1 3 2 na C 1 0 0

4 2 5.2 D 0 5.2 0 0

Engineering Systems Division Mo-Han Hsieh

Page 39: Simple network analysis with UCINET

DL Format: edgelist2DL Format: edgelist2

dl nr=3 nc=5, format = edgelist2 labels embedded: data: A1 B1 1 A1 B2 1.5 Resulting Matrix => A1 B3 2 A2 B1 1 A3 B2 3 A3 B4 2 A3 B5 1

B1 B2 B3 B4 B5 A1 1 1.5 2 0 0 A2 1 0 0 0 0 A3 0 3 0 2 1

Engineering Systems Division Mo-Han Hsieh

Page 40: Simple network analysis with UCINET

Export DataExport Data

• Export UCINET dataset to – Excel file

• Number of columns < 257 – DL format

• Easy to do cut and paste • Example: Cut and paste as a Matlab data file.

– Other format

Engineering Systems Division Mo-Han Hsieh

Page 41: Simple network analysis with UCINET

Export DatasetExport DatasetData>Export>DL…Data>Export>DL…

Engineering Systems Division Mo-Han Hsieh

Page 42: Simple network analysis with UCINET

Data ProcessingData Processing

• Most of the data processing functions arein Data and Transform submenus.

• Some useful functions– Data>Affiliations…– Data>Extract… – Data>Remove isolates– Data>Join… – Data>Permute… – Data>Transpose…

Engineering Systems Division Mo-Han Hsieh

Page 43: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Affiliations…Data>Affiliations…

Engineering Systems Division Mo-Han Hsieh

Page 44: Simple network analysis with UCINET

Convert 2Convert 2--mode data to 1mode data to 1--modemode

Engineering Systems Division Mo-Han Hsieh

Page 45: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Extract…Data>Extract…

Engineering Systems Division Mo-Han Hsieh

Page 46: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Remove isolatesData>Remove isolates

Engineering Systems Division Mo-Han Hsieh

Page 47: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Join…Data>Join…

Engineering Systems Division Mo-Han Hsieh

Page 48: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Permute…Data>Permute…

Engineering Systems Division Mo-Han Hsieh

Page 49: Simple network analysis with UCINET

Data ProcessingData ProcessingData>Transpose…Data>Transpose…

Engineering Systems Division Mo-Han Hsieh

Page 50: Simple network analysis with UCINET

Main window: TransformMain window: Transform

Engineering Systems Division Mo-Han Hsieh

Page 51: Simple network analysis with UCINET

Tips of Using UCINETTips of Using UCINET

• Before using an UCINET function –Check it out in Help>Help Topics>Index – Purpose, Description, Parameters, Log File, Timing, Comments,

and References. –Timing is sometimes important

• Function with O(N^3) can be a problem for networks with more than 1,000 nodes.

• Setup the following two directories before startworking with the UCINET –File>Change Default Folder…–Options>Output folder

Engineering Systems Division Mo-Han Hsieh

Page 52: Simple network analysis with UCINET

ReferencesReferences

• Borgatti, Everett and Freeman, UCINET 6 for Windows: User’s Guide. Harvard: Analytic Technologies.

• Borgatti, S.P., Everett, M.G. and Freeman, L.C. 2002. Ucinet 6 for Windows. Harvard: Analytic Technologies.

Engineering Systems Division Mo-Han Hsieh