<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Basic Help with PROC TRANSPOSE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/535276#M73917</link>
    <description>Please note, that for most procedures the structure of have is more useful, than that of want.</description>
    <pubDate>Wed, 13 Feb 2019 16:39:15 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-02-13T16:39:15Z</dc:date>
    <item>
      <title>Basic Help with PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/534940#M73905</link>
      <description>&lt;P&gt;I need what I think is some fairly basic help with proc transpose. I've read a few docs and guides, but can't seem to put everything together to make it work for my exact scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I use a proc transpose to turn my DATA HAVE into my DATA WANT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input stuid courseid facid qid qresponse $;
cards;
1 1 1 1 5
1 1 1 2 4
1 1 1 3 4
1 1 1 4 5
1 1 1 5 3
1 1 2 1 5
1 1 2 2 5
1 1 2 3 5
1 1 2 4 5
1 1 2 5 5
;
run;


data want;
input stuid courseid facid qid_1 qid_2 qid_3 qid_4 qid_5 $;
cards;
1 1 1 5 4 4 5 3
1 1 2 5 5 5 5 5
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 17:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/534940#M73905</guid>
      <dc:creator>GregG</dc:creator>
      <dc:date>2019-02-12T17:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Help with PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/534944#M73906</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input stuid courseid facid qid qresponse $;
cards;
1 1 1 1 5
1 1 1 2 4
1 1 1 3 4
1 1 1 4 5
1 1 1 5 3
1 1 2 1 5
1 1 2 2 5
1 1 2 3 5
1 1 2 4 5
1 1 2 5 5
;
run;

proc transpose data=have out=want(drop=_:) prefix=qid_;
by stuid courseid facid;
id qid;
var qresponse;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 18:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/534944#M73906</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-12T18:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Help with PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/535276#M73917</link>
      <description>Please note, that for most procedures the structure of have is more useful, than that of want.</description>
      <pubDate>Wed, 13 Feb 2019 16:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/535276#M73917</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-13T16:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Help with PROC TRANSPOSE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/535284#M73918</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp; &amp;nbsp;Very good point. But I would like to bring to your attention one potential caveat. A lot of survey questionnaire data that's used by market research firms are usually in the wide form however transformed into 1's and 0's for regression modeling and so on.&lt;/P&gt;
&lt;P&gt;There's a possibility the OP might have such requirement. And then of course even if there's a combination of continuous/non continuous variables, we could analyse interaction terms and so on and so forth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At DePaul Uni, we play with such data a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, I totally agree with you. Cheers!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Basic-Help-with-PROC-TRANSPOSE/m-p/535284#M73918</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-13T16:46:20Z</dc:date>
    </item>
  </channel>
</rss>

