Précédent   Forum des professionnels en informatique > Logiciels > Solutions d'entreprise > Business Intelligence > SAS > SAS STAT
SAS STAT Forum d'entraide sur les fonctionnalités liées à la statistique sur SAS : statistique descriptive, test, régression, classification
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 31/12/2010, 21h05   #1
Invité régulier
 
ben kab
Inscription : octobre 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : ben kab

Informations forums :
Inscription : octobre 2010
Messages : 54
Points : 9
Points : 9
Par défaut Cercle de correlation

Bonjour,

Je voudrais savoir s'il y a une instruction pour afficher le cercle de corrélation.

Parce qu'avec la proc corr j'arrive à avoir la matrice des corrélations, mais ce qui m'intéresse aussi c'est le cercle de corrélation.

Merci
demido est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/01/2011, 09h21   #2
Invité de passage
 
Inscription : décembre 2010
Messages : 12
Détails du profil
Informations forums :
Inscription : décembre 2010
Messages : 12
Points : 3
Points : 3
bonjour
comment t'a fait pour avoir la matrice de correlation?
clement1990 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 02/01/2011, 10h49   #3
Invité régulier
 
ben kab
Inscription : octobre 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : ben kab

Informations forums :
Inscription : octobre 2010
Messages : 54
Points : 9
Points : 9
Par défaut Cercle de corrélation

Bonjour,

Tu l'obtiendras la matrice de corrélation par la procédure PROC CORR

Code :
1
2
PROC CORR DATA= Nom_Table;
RUN;
Voila
demido est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 04/01/2011, 12h32   #4
Membre Expert
 
Homme
Biostatisticien
Inscription : juin 2009
Messages : 1 143
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Irlande

Informations professionnelles :
Activité : Biostatisticien
Secteur : Industrie Pharmaceutique

Informations forums :
Inscription : juin 2009
Messages : 1 143
Points : 1 760
Points : 1 760
sur ce site
http://biodiversite.wallonie.be/outi.../exempl08.html
tu trouveras un lien vers une macro qui semble faire ce que tu veux. J'ai pas essayé dis moi si ca marche
Manoutz est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/01/2011, 10h10   #5
Rédacteur
 
Homme Stéphane
Consultant et formateur SAS et Cognos
Inscription : avril 2009
Messages : 1 791
Détails du profil
Informations personnelles :
Nom : Homme Stéphane
Localisation : France, Yvelines (Île de France)

Informations professionnelles :
Activité : Consultant et formateur SAS et Cognos
Secteur : Conseil

Informations forums :
Inscription : avril 2009
Messages : 1 791
Points : 4 012
Points : 4 012
J'utilise cela :

1. Définition du cercle
Code :
1
2
3
4
5
6
7
8
9
10
11
PROC TEMPLATE ;
DEFINE STATGRAPH exemples.acp ;
LAYOUT OVERLAY / XGRID=TRUE YGRID=TRUE  
			 XAXISOPTS=(LABEL="Axe n°1" TICKS=(-1 0 1))
			 YAXISOPTS=(LABEL="Axe n°2" TICKS=(-1 0 1)) ;
VECTORPLOT X=prin1 Y=prin2 / DATALABEL=variable XMIN=-1 XMAX=1 YMIN=-1 YMAX=1 ;
ELLIPSEPARM SEMIMAJOR=1 SEMIMINOR=1 SLOPE=0 /    
   LINECOLOR=BLUE LINEPATTERN=DASH; 
ENDLAYOUT ;
	END ;
RUN ;
2. Appel

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%include "&root.\SAS913 cercle correlations.sas";
 
ODS OUTPUT Eigenvectors = vecteurspropres ;
PROC PRINCOMP DATA =o.estonia1 n=4 ;
VAR _numeric_;
RUN ;
 
 
ODS HTML GPATH="c:\temp" ;
DATA _NULL_ ;
SET work.vecteurspropres ;
FILE PRINT ODS=(TEMPLATE="exemples.acp" DYNAMIC=(axe1="prin1" axe2="prin2")) ;
PUT _ODS_ ;
RUN ;
DATA _NULL_ ;
SET work.vecteurspropres ;
FILE PRINT ODS=(TEMPLATE="exemples.acp" DYNAMIC=(axe1="prin3" axe2="prin4")) ;
PUT _ODS_ ;
RUN ;
ODS HTML CLOSE ;
__________________
N'oubliez pas de cliquer sur lorsque votre problème est réglé !

Moteur de recherche dans les papiers SAS
datametric est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/01/2011, 18h28   #6
Membre expérimenté
 
Inscription : avril 2009
Messages : 537
Détails du profil
Informations forums :
Inscription : avril 2009
Messages : 537
Points : 540
Points : 540
T'es en quelle version de SAS datametric?
Citation:
Envoyé par datametric Voir le message
J'utilise cela :

1. Définition du cercle
Code :
1
2
3
4
5
6
7
8
9
10
11
PROC TEMPLATE ;
DEFINE STATGRAPH exemples.acp ;
LAYOUT OVERLAY / XGRID=TRUE YGRID=TRUE  
			 XAXISOPTS=(LABEL="Axe n°1" TICKS=(-1 0 1))
			 YAXISOPTS=(LABEL="Axe n°2" TICKS=(-1 0 1)) ;
VECTORPLOT X=prin1 Y=prin2 / DATALABEL=variable XMIN=-1 XMAX=1 YMIN=-1 YMAX=1 ;
ELLIPSEPARM SEMIMAJOR=1 SEMIMINOR=1 SLOPE=0 /    
   LINECOLOR=BLUE LINEPATTERN=DASH; 
ENDLAYOUT ;
	END ;
RUN ;
xav2229 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/01/2011, 21h19   #7
Rédacteur
 
Homme Stéphane
Consultant et formateur SAS et Cognos
Inscription : avril 2009
Messages : 1 791
Détails du profil
Informations personnelles :
Nom : Homme Stéphane
Localisation : France, Yvelines (Île de France)

Informations professionnelles :
Activité : Consultant et formateur SAS et Cognos
Secteur : Conseil

Informations forums :
Inscription : avril 2009
Messages : 1 791
Points : 4 012
Points : 4 012
9.63 beta 9 pourquoi ?
__________________
N'oubliez pas de cliquer sur lorsque votre problème est réglé !

Moteur de recherche dans les papiers SAS
datametric est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/01/2011, 21h36   #8
Rédacteur
 
Homme Stéphane
Consultant et formateur SAS et Cognos
Inscription : avril 2009
Messages : 1 791
Détails du profil
Informations personnelles :
Nom : Homme Stéphane
Localisation : France, Yvelines (Île de France)

Informations professionnelles :
Activité : Consultant et formateur SAS et Cognos
Secteur : Conseil

Informations forums :
Inscription : avril 2009
Messages : 1 791
Points : 4 012
Points : 4 012
en PJ, voilà le résultat sur une machine xp 9.1.3

une modification légère et cela fonctionnera en 9.2
Images attachées
Type de fichier : png menfin.png (47,4 Ko, 17 affichages)
__________________
N'oubliez pas de cliquer sur lorsque votre problème est réglé !

Moteur de recherche dans les papiers SAS
datametric est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 07/01/2011, 12h09   #9
Membre expérimenté
 
Inscription : avril 2009
Messages : 537
Détails du profil
Informations forums :
Inscription : avril 2009
Messages : 537
Points : 540
Points : 540
ca ne marche pas ce code chez moi :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
1    ods path SHOW;
Current ODS PATH list IS:
 
1. SASUSER.TEMPLAT(UPDATE)
2. SASHELP.TMPLMST(READ)
2    ods path SHOW;
Current ODS PATH list IS:
 
1. SASUSER.TEMPLAT(UPDATE)
2. SASHELP.TMPLMST(READ)
3    ods path  WORK.TEST
4     SASUSER.TEMPLAT(READ)
5     SASHELP.TMPLMST(READ);
6
7    PROC TEMPLATE ;
8    DEFINE STATGRAPH exemples.acp ;
9    LAYOUT OVERLAY / XGRID=TRUE YGRID=TRUE
            -------   -----
            856       22
                      76
ERROR 856-580: This statement can only be used inside the BeginGraph block.
ERROR 22-322: Syntax error, expecting one of the following: ;, AUTOALIGN, BACKGROUNDCOLOR, BORDER, BORDERATTRS, CYCLEATTRS, HALIGN, OPAQUE, PAD, VALIGN, WALLCOLOR, WALLDISPLAY, X2AXISOPTS, XAXISOPTS, Y2AXISOPTS, YAXISOPTS.
ERROR 76-322: Syntax error, statement will be ignored.
10             XAXISOPTS=(LABEL="Axe n°1" TICKS=(-1 0 1))
11             YAXISOPTS=(LABEL="Axe n°2" TICKS=(-1 0 1)) ;
NOTE: PROCEDURE TEMPLATE used (Total process time):
      real time           1.53 seconds
      user cpu time       0.00 seconds
      system cpu time     0.04 seconds
      Memory                            1095k
      OS Memory                         6028k
      Timestamp            07/01/2011  10:43:47
 
 
12   VECTORPLOT X=prin1 Y=prin2 / DATALABEL=variable XMIN=-1 XMAX=1 YMIN=-1 YMAX=1 ;
     ----------
     180
 
ERROR 180-322: Statement IS NOT valid OR it IS used out of proper ORDER.
 
13   ELLIPSEPARM SEMIMAJOR=1 SEMIMINOR=1 SLOPE=0 /
     -----------
     180
ERROR 180-322: Statement IS NOT valid OR it IS used out of proper ORDER.
14      LINECOLOR=BLUE LINEPATTERN=DASH;
 
15   ENDLAYOUT ;
     ---------
     180
 
ERROR 180-322: Statement IS NOT valid OR it IS used out of proper ORDER.
 
16      END ;
        ---
        180
 
ERROR 180-322: Statement IS NOT valid OR it IS used out of proper ORDER.
 
17   RUN ;
xav
xav2229 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/01/2011, 12h05   #10
Rédacteur
 
Homme Stéphane
Consultant et formateur SAS et Cognos
Inscription : avril 2009
Messages : 1 791
Détails du profil
Informations personnelles :
Nom : Homme Stéphane
Localisation : France, Yvelines (Île de France)

Informations professionnelles :
Activité : Consultant et formateur SAS et Cognos
Secteur : Conseil

Informations forums :
Inscription : avril 2009
Messages : 1 791
Points : 4 012
Points : 4 012
Ah oui tu dois être en 9.2. Comme je l'écrivais, il y a une ligne à ajouter avec Begingraph. Je regarde dans ma machine 9.2 et te l'envoie
__________________
N'oubliez pas de cliquer sur lorsque votre problème est réglé !

Moteur de recherche dans les papiers SAS
datametric est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/01/2011, 10h35   #11
Invité régulier
 
ben kab
Inscription : octobre 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : ben kab

Informations forums :
Inscription : octobre 2010
Messages : 54
Points : 9
Points : 9
Par défaut Cercle de corrélation

Bonjour,

Merci de vos réponses

Mais ça ne fonctionne pas chez moi, sachant que j'ai SAS 9.2, je ne sais pas si ça provient de la version ou pas

Voici le message d'erreur:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
173  PROC TEMPLATE ;
174  DEFINE STATGRAPH exemples.acp ;
175  LAYOUT OVERLAY / XGRID=TRUE YGRID=TRUE
            -------   -----
            856       22
                      76
ERROR 856-580: Cette instruction ne peut être utilisée que dans un bloc BeginGraph.
ERROR 22-322: Erreur de syntaxe ; syntaxe requise : ;, ASPECTRATIO, AUTOALIGN, BACKGROUNDCOLOR, BORDER, BORDERATTRS, CYCLEATTRS,
              HALIGN, OPAQUE, PAD, VALIGN, WALLCOLOR, WALLDISPLAY, X2AXISOPTS, XAXISOPTS, Y2AXISOPTS, YAXISOPTS.
ERROR 76-322: Erreur de syntaxe ; l'instruction sera ignorée.
176               XAXISOPTS=(LABEL="Axe n°1" TICKS=(-1 0 1))
177               YAXISOPTS=(LABEL="Axe n°2" TICKS=(-1 0 1)) ;
NOTE: Procédure TEMPLATE a utilisé (Durée totale du traitement) :
      temps réel          0.13 secondes
      temps UC            0.03 secondes
 
 
178  VECTORPLOT X=prin1 Y=prin2 / DATALABEL=variable XMIN=-1 XMAX=1 YMIN=-1 YMAX=1 ;
     ----------
     180
 
ERROR 180-322: Instruction incorrecte ou mal utilisée.
 
179  ELLIPSEPARM SEMIMAJOR=1 SEMIMINOR=1 SLOPE=0 /
     -----------
     180
ERROR 180-322: Instruction incorrecte ou mal utilisée.
180     LINECOLOR=BLUE LINEPATTERN=DASH;
 
181  ENDLAYOUT ;
     ---------
     180
 
ERROR 180-322: Instruction incorrecte ou mal utilisée.
 
182      END ;
         ---
         180
 
ERROR 180-322: Instruction incorrecte ou mal utilisée.
 
183  RUN ;
demido est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/01/2011, 11h00   #12
Rédacteur
 
Homme Stéphane
Consultant et formateur SAS et Cognos
Inscription : avril 2009
Messages : 1 791
Détails du profil
Informations personnelles :
Nom : Homme Stéphane
Localisation : France, Yvelines (Île de France)

Informations professionnelles :
Activité : Consultant et formateur SAS et Cognos
Secteur : Conseil

Informations forums :
Inscription : avril 2009
Messages : 1 791
Points : 4 012
Points : 4 012
effectivement en 9.2 il faut ajouter une ligne avec BEGINGRAPH. Regarde dans la doc. Si tu ne trouves pas je rechercherai le code.
__________________
N'oubliez pas de cliquer sur lorsque votre problème est réglé !

Moteur de recherche dans les papiers SAS
datametric est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/01/2011, 11h11   #13
Invité régulier
 
ben kab
Inscription : octobre 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : ben kab

Informations forums :
Inscription : octobre 2010
Messages : 54
Points : 9
Points : 9
Par défaut Cercle de corrélation

OK, merci
demido est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 16h17.


 
 
 
 
Partenaires

Hébergement Web