how to generate means for every subject;

Answers were Sorted based on User's Feedback



how to generate means for every subject;..

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

how to generate means for every subject;..

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

how to generate means for every subject;..

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

how to generate means for every subject;..

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

Post New Answer

More SAS Interview Questions

How to Rename Library?

3 Answers  


How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

2 Answers  


what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

0 Answers  


what is validvarname and varnum? why we are using this options; explain with a syntax for this options?

1 Answers   Max India,


How would you code a merge that will keep only the observations that have matches from both sets?

5 Answers  






Baseline definition in your study

3 Answers   Accenture, Quintiles,


tell me about intnx, intcx functions?

4 Answers   CitiGroup,


DATA ABC; INPUT TDATE DATE9. AVG; CARDS; 18APR2008 150.00 19APR2008 167.00 20APR2008 123.00 21APR2008 145.00 ; RUN HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF 21APR2008?? IF ANY ONE GETS IT PLS TRY TO POST IT.

8 Answers   Verinon Technology Solutions,


what is the difference between infile and input? : Sas-administrator

0 Answers  


We want to merge file A and B. File A has variable age, file B provide birthdate. How to merge the data according to age in file B

3 Answers  


What do you feel about hardcoding?

1 Answers  


What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here

2 Answers  


Categories