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 |
How to Rename Library?
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?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
what is validvarname and varnum? why we are using this options; explain with a syntax for this options?
How would you code a merge that will keep only the observations that have matches from both sets?
Baseline definition in your study
3 Answers Accenture, Quintiles,
tell me about intnx, intcx functions?
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
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
What do you feel about hardcoding?
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