What does a PROC TRANSPOSE do?
Answers were Sorted based on User's Feedback
Answer / raveendranath
The TRANSPOSE procedure creates an output data set by
restructuring the values in a SAS data set, transposing
selected variables into observations.
| Is This Answer Correct ? | 42 Yes | 2 No |
Answer / vengala reddy
it transposes the row values into column headings
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / sarath
We have two different type of TRANSPOSE: “UP” and “DOWN”:
“UP” transpose change rows of a dataset to columns, whereas
the “Down” transpose change columns to rows. We either
use "UP" or "DOWN" tranpose depending upon the requirement.
Whenver we use PROC TRANSPOSE we need to ask some questions
ourselves, since visualizing the PROC Transpose syntax is
not that easy:
To develop the PROC TRANSPOSE syntax we need to know the
answers to the above questions,
1) Which variable/variables need to get transposed?
A) Whatever the variable we mention in the ID statement.
2) What are the variables that need to stay same as in the
input dataset?
A) Variables that are included in the BY statement.
3) Which variables values need to become the values for the
transposed variable.
A) Variables that are included in the VAR statement.
read more at...
http://studysas.blogspot.com/2009/03/proc-transpose-how-to-
convert.html
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / kumar
PROC TRANSPOSE will change the observations to variables
and variables to the observation
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / yakaiah
it just converts the rows into columns and vice and versa
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vamsi
Proc transpose procedure convert the data from normalization format to non-normalization format
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / amar
To make this crosstabulation of time of day and choice of
radio programming, you must have a data set that contains a
variable for time of day and a variable for programming
preference. PROC TRANSPOSE reshapes the data into a new data
set that contains these variables
| Is This Answer Correct ? | 4 Yes | 5 No |
What is the purpose of _character_ and _numeric_?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
How would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable?
how do u identify a macro variable
what are different type of sas servers ? On which server does the sas code execute ?
Please write codes to merge two datasets and keep every record in the first dataset.
which features do you use to check the data validations and errors? : Sas-administrator
The below code we are using for creating more than one macro variables in proc sql using into clause. How we can use same code to create macro variables vara, varb, varc instead of var1, var2, var3.? proc sql noprint; select count(distinct(patient)) into :var1 - :var3 from dataset1 group by trtreg1c ; quit;
What is the basic structure of a sas program?
What are the different versions of sas that you have used until now? : sas-grid-administration
Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.
what are system option ? give few examples ? what are dataset options and dataset statements ? if there is a keep option and keep statement ? which one is executed first ? Difference between a WHERE statement and IF statement ? what is the advantage of using WHERE statement option on the dataset ?