olivier godechot

Sas2pajek



Sas2pajek est une macro SAS qui transforme une base SAS en fichier de projet Pajek. Sas2pajek crée non seulement des fichiers pajek de relation (mode 1 ou mode 2, orienté ou non), mais permet de gérer tous les détails d'un pajek project file, comme les attributs qualitatifs (les partitions) et quantitatifs (les vecteurs), la forme et la couleur des vertex et des arcs. Sas2pajek peut générer aussi des réseaux qui évoluent dans le temps (time event network).

Organisation minimale des données : vous devez avoir un fichier SAS avec au minimum trois variables, l'identifiant du vertex de départ de l'arc, l'identifiant du vertex d'arrivée de l'arc et l'intensité de l'arc.

Par exemple :
Or_id ; Dest_id ; value
a1572 ; a1759 ; 2
a1088 ; a2716 ; 1
a1863 ; a2716 ; 1

Une base de données sur les vertex (avec un vertex par ligne) permet de qualifier les vertex


Utilisation :
1. Sous SAS, soumettre le fichier de macro sas2pajek.sas
2. Dans un menu éditeur taper :
%sas2pajek;
3. Soumettre
4. Remplir le formulaire.
5. Taper entrée.

(Cliquer sur la disquette pour télécharger sas2pajek)


Sas2Pajek is a SAS macro that transforms a SAS file into a Pajek project file. Sas2pajek creates a pajek network file (1-mode or 2-mode, oriented or unoriented). It does also much more : it generates also much of the details of a pajek project file like the qualitative (partitions) and quantitive (vectors) attributes of the vertex, the forms and the colors of the vertex. Sas2pajek can also generate time-event networks.

Minimal data organisation : You need to have a file with the list or your arcs, that is three variables, the identity of your vertex origin, the identity of the vertex destiny and the arcs intensity.

For instance :
Or_id ; Dest_id ; value
a1572 ; a1759 ; 2
a1088 ; a2716 ; 1
a1863 ; a2716 ; 1


A sas database on the vertex (with one vertex a row) enables to qualify the vertex.


How to run it ?
1. Submit the sas2pajek.sas
2. In a program file type :
%sas2pajek;
3. Submit
4. Fill the form.
5. Press enter.

Enjoy

(Clic on the floppy to download the file)



Français | English

Actualités   

OgO: plus ici|more here

Tweets (rarely/rarement): @OlivierGodechot

[Webmestre]

[Fil rss]

[V. 0.93]

HOP

Système d'aide à la publication sur Internet


000

clics / mois.