Save
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.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
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
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards