how to generate means for every subject;
Answers were Sorted based on User's Feedback
Answer / chandrakanth
use PROC MEANS DATA=DATA SET NAME;
VAR VARIABLE LIST;(here include for which subjects you need the mean)
run;
lemme know if you did not get it!
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / venkatesh
u will get the answer by using proc means.
ex:
a b c d
10 20 30 100
20 40 40 150
proc means data=new mean;
run;
it will give mean of a , b , c, d
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ravi
without mention var stmt in means then u will get means for all numeric variables
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / naga
Here the question is means for every subject.
In SAS terminology subject means patient so the code is
proc means data=datasetname;
by subject;
var list;
run;
Is This Answer Correct ? | 0 Yes | 4 No |
Explain what is SAS informats?
How would you create multiple observations from a single observation?
How could you generate test data with no input data?
Hi Friends, My name is Priya,am new to this Forum. am looking for SAS Platform Administration Interview Questions.I searched every where but I couldn't find any where.please can anyone help me with the FAQ's. It would be a great favor to me if you can email the Interview Questions to priyafeb84@gmail.com
explain the proc in sas? : Sas-administrator
hi guys ...i have one query... data abc; input s w k g o t a m; cards; 1 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 ; run; i want the output to be the sorted order(only variables).observations should not be changed..
tell me about use of arrays in sas
what are scrubing procedures in SAS?
how does sas handle missing values in an update? : Sas programming
What can you learn from the SAS log when debugging?
Tell e how how dealt with..
data task; input id date date9. visit; cards; 101 01jan2015 1 101 02jan2015 2 101 06jan2015 3 102 04jan2015 1 102 07jan2015 2 102 12jan2015 3 103 06jan2015 1 103 13jan2015 2 ; run; write a program to find out missing dates between visits by each subject.