Posts Tagged ‘ proc transpose ’

Example 2014.13: Statistics doesn’t have to be so hard! Resampling in R and SAS

November 17, 2014
By
Example 2014.13: Statistics doesn’t have to be so hard! Resampling in R and SAS

A recent post pointed us to a great talk that elegantly described how inferences from a trial could be analyzed with a purely resampling-based approach. The talk uses data from a paper that considered the association between beer consumption and mosqu...
Read more »

Tags: , , , ,
Posted in SAS | Comments Off

Example 2014.12: Changing repeated measures data from wide to narrow format

October 21, 2014
By

Data with repeated measures often come to us in the "wide" format, as shown below for the HELP data set we use in our book. Here we show just an ID, the CESD depression measure from four follow-up assessments, plus the baseline CESD.

Obs    ID    CESD1 ...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off

Example 2014.1: "Power" for a binomial probability, plus: News!

January 14, 2014
By

Hello, folks! I'm pleased to report that Nick and I have turned in the manuscript for the second edition of SAS and R: Data Management, Statistical Analysis, and Graphics. It should be available this summer. New material includes some of our more po...
Read more »

Tags: , , , , , ,
Posted in SAS | Comments Off

Example 9.32: Multiple testing simulation

May 21, 2012
By

In examples 9.30 and 9.31 we explored corrections for multiple testing and then extracting p-values adjusted by the Benjamini and Hochberg (or FDR) procedure. In this post we'll develop a simulation to explore the impact of "strong" and "weak" control...
Read more »

Tags: , , , , , , ,
Posted in SAS | Comments Off

A two-step transpose approach to reshape data

January 21, 2011
By
A two-step transpose approach to reshape data

New in SAS 9.2, the TRANSPOSE procedure accepts multiple IDs in its ID statement. More than one IDs would automatically concatenate together as the new variable names. Previously, Proc Transpose usually only allows one ID. As the result, the concatena...
Read more »

Tags: ,
Posted in SAS | Comments Off

My answer to a complex transpose question from SAS-L

June 16, 2010
By

The question is raised from http://www.listserv.uga.edu/cgi-bin/wa?A2=ind1005d&L=sas-l&F=&S=&P=11947proc sort data=indat out=one; by subjid vist;run;proc transpose data=one out=two ; var result; by subjid vist; run;proc transpose data=o...
Read more »

Tags: ,
Posted in SAS | Comments Off

How to transpose data

April 25, 2010
By

"http://www.mitbbs.com/article_t/Statistics/31224273.html"Derive new var in data step --> reshape data in proc transpose --> use proc sql to generate reportdata one;input good P1 P2 P3 P4 P5 P6 P7 P8 P9 P10;if sum(of good-P10)=11 then yes=1;else yes=0...
Read more »

Tags: ,
Posted in SAS | Comments Off

Proc-x is looking for sponsors!

Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: [email protected]

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.