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 |
Can you excute a macro within a macro? Describe.
What is substr function?
Can we use where and having clauses in a single SAS program. ex: proc sql; select a,b,c from test where state in 'KA' and having <some condition>. Is the above program run correctly, if not why ?
The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?
what is data access? : Sas-di
What data sets do you need to produce the report?
Have you used macros? For what purpose you have used? : sas-macro
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
What are the functions which are used for character handling functions?
How do you read in the variables that you need?
what is the use of proc sql? : Sas programming
Explain the purpose of retain statement.