or...
Reset Password Free Sign Up

incorrect cards (0)
correct cards (0)
remaining cards (0)
0:01
To flip the current card, click it or press the Spacebar key.  To move the current card to one of the three colored boxes, click on the box.  You may also press the UP ARROW key to move the card to the Correct box, the DOWN ARROW key to move the card to the Incorrect box, or the RIGHT ARROW key to move the card to the Remaining box.  You may also click on the card displayed in any of the three boxes to bring that card back to the center.

Pass complete!

Correct box contains:
Time elapsed:
Retries:
restart all cards


 

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

SAS - Set 1

des questions sur le logiciel SAS

QuestionAnswer
comment ajouter une colonne Y valant toujours 2 à un tableau tab ? Data tab; set tab; y=2;
Comment ajouter un label "ma variable" à la variable X d'un tableau tab ? Data tab; set tab; label x="ma variable";
Que donne Data tab; do i=1 to 5; end; I 6 car l'on sort de la boucle lorsque i vaut 6, et qu'il n'y a pas de output dans la boucle
Comment lire les données suivantes dans deux variables texte et nombre : un chien 18 deux chats 23 Data tab; input texte $ 1-10 nombre; cards; un chien 18 deux chats 23 ;
Le premier chiffre indique la taille de la planète, le second sa position par rapport au soleil, et le nombre suivant indiquant le nombre de satellites : Jupiter 1516 Saturne 2617 Terre 531 Data tab; input nom $ taille 1. pos 1. satellites; cards; Jupiter 1516 Saturne 2617 Terre 531
Que donne 18.3 lu avec les formats 2., 2.1, 3.2, 4.2 ? 18 1.8 18 18.3
Que donne Data tab; x=2; X 2
Que donne Data tab; retain y 3; input x; y=y-1; cards; 8 9 3 ; X Y 8 2 3 1
Lire les donnés suivantes dans un cards dans une variable X : 45:6:15 7:6.3 Data tab; infile cards dlm=":"; input x @@; cards; 45:6:15 7:6.3 ;
Lire la cinquième observation d'un tableau tab. data tab2; yy=5;/*une variable qui n'existe pas dans tab*/ set tab point=yy; output; stop;
Que donne Data tab; set tab nobs=counter end=last2; Simplement le tableau Tab. Les variables counter et last2 sont temporaires et ne sont donc pas ajoutées au tableau tab.
Comment ajouter un label "mon label" à la variable Y, puis afficher le tableau avec ce label ? Data tab; set tab; label y="mon label"; Proc Print label;
Comment sélectionner les observations vérifiant x>10 et type valant A ? data tab2; set tab; where x>10 and type='A';
Définir et utiliser un format affichant OUI pour o et NON pour n. Proc Format; value $ reponse o='OUI' n='NON'; data tab; input x $ @@; cards; o n n o ; proc print; format x $reponse.; run;
Des personnes effectuent des sauts en hauteurs (trois chacun). On a répertorié leurs performances et on souhaite avoir un tableau avec une variable "hauteur" et la variable "nom" : David 1.65 1.54 1.63 Jérôme 1.57 1.68 1.71 data tab; input nom $ h1-h3; hauteur=h1; output; hauteur=h2; output; hauteur=h3; output; keep nom hauteur;/*non obligatoire*/ cards; David 1.65 1.54 1.63 Jérôme 1.57 1.68 1.71 ;
Created by: ocouronne on 2010-11-06




Copyright ©2001-2013 John Weidner All rights reserved.
About -  FAQ -  Terms of Service -  Privacy Statement -  Contact -  Hide Ads  -  Mobile