Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

des questions sur le logiciel SAS

        Help!  

Question
Answer
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 ;  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
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
Created by: ocouronne
Popular Computers sets