<?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: Wilcoxon help--new SAS student in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215508#M53038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So assuming you have a dataset with two variables you could do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step1;&lt;/P&gt;&lt;P&gt;set HAVE;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;answerdiff=posttestanswer - pretestanswer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then use PROC UNIVARIATE on the step1 dataset. &lt;/P&gt;&lt;P&gt;proc univariate data=step1;&lt;/P&gt;&lt;P&gt;var step1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also look at PROC NPAR1WAY tests:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc npar1way data=step1 wilcoxon;&lt;/P&gt;&lt;P&gt;var answerdiff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 03:18:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-04-03T03:18:06Z</dc:date>
    <item>
      <title>Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215507#M53037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have run preliminary procedures and have determined that my data is nonparametric...I need to measure the difference in answers between a post-test and a pre-test. For normal data, I would, of course, run a paired t-test, but that won't help me in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything that I have found is way above my head--I have only been using SAS for a couple of months now and it's all been for normal data...and, for the most part, as directed by my instructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two variables posttestanswer and pretestanswer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything I can find talks about defining a data set, but my data set is already input into SAS and saved.&lt;/P&gt;&lt;P&gt;I've tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;answerdiff=posttestanswer - pretestanswer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and that doesn't work...in part because apparently I'm not appropriately defining "answerdiff" but I'm not sure how to do that in this case. And, once I get the silly part defined, then I need help with the proc statement...best I can tell I'd use a proc univariate with the newly identified "answerdiff" for my variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help you can provide. Eventually I'll get this... &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 01:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215507#M53037</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2015-04-03T01:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215508#M53038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;So assuming you have a dataset with two variables you could do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step1;&lt;/P&gt;&lt;P&gt;set HAVE;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;answerdiff=posttestanswer - pretestanswer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could then use PROC UNIVARIATE on the step1 dataset. &lt;/P&gt;&lt;P&gt;proc univariate data=step1;&lt;/P&gt;&lt;P&gt;var step1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also look at PROC NPAR1WAY tests:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc npar1way data=step1 wilcoxon;&lt;/P&gt;&lt;P&gt;var answerdiff;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 03:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215508#M53038</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-03T03:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215509#M53039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding!&lt;/P&gt;&lt;P&gt;I get into SAS now and give it a shot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 11:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215509#M53039</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2015-04-03T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215510#M53040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologizing in advance for my blatant ineptitude...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried what you suggested and keep getting these errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;25&amp;nbsp;&amp;nbsp; data step1;&lt;/P&gt;&lt;P&gt;26&amp;nbsp;&amp;nbsp; set HAVE; (I have also substituted in the name of my data and my set and tried it every which way I can think of.)&lt;/P&gt;&lt;P&gt;ERROR: File WORK.HAVE.DATA does not exist.... or&lt;/P&gt;&lt;P&gt;ERROR: Libref ATC_DATA is not assigned or&lt;/P&gt;&lt;P&gt;ERROR: File WORK.ATC_DATA.DATA does not exist&lt;/P&gt;&lt;P&gt;27 answerdiff=postidstolen - preidstolen;&lt;/P&gt;&lt;P&gt;28&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, with that said...if you don't mind holding my hand a little more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done my proc import. Data file is in and set to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ATC_data;&lt;/P&gt;&lt;P&gt;set ATC_data.fcs;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have identified my variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*preidstolen;&lt;/P&gt;&lt;P&gt;if preidstolen in (1:5) then do;&lt;/P&gt;&lt;P&gt;SD=preidstolen=1;&lt;/P&gt;&lt;P&gt;and so on through&lt;/P&gt;&lt;P&gt;SA=preidstolen=5;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*postidstolen;&lt;/P&gt;&lt;P&gt;if postidstolen in (1:5) then do;&lt;/P&gt;&lt;P&gt;see preidstolen for breakdown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now I want to define "stolendiff" (stolendiff=postidstolen-preidstolen) but I can't figure out how to get it to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 12:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215510#M53040</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2015-04-03T12:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215511#M53041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Both of your method are right .&amp;nbsp; If there are some other variables ,I would consider Covariance Analysis by proc glm . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 14:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215511#M53041</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-03T14:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215512#M53042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to keep plugging along at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some other variables...I am back in the stats game after 10 years off (and the sad thing is I really stunk it up then, so the fact that I am understanding now is a delight), though figuring out when to use some of these things is another challenge, LOL. If I need the covariance analysis...which I just might...I'll give it a shot. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 16:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215512#M53042</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2015-04-03T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215513#M53043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run a proc contents on your data set:&lt;/P&gt;&lt;P&gt;proc contents data=&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;atc_data.fcs; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then post your full code that's generating errors - your code appears correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: There is a free intro to SAS course and intro to SAS/STATS course from SAS institute available on SAS Analytics U home page.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215513#M53043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-03T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wilcoxon help--new SAS student</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215514#M53044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a possible way to do it in some archived videos my professor posted...but I anticipated different results so I am wondering if the data I am running this procedure on is the wrong type of data...I'll get that one figured out too.&lt;/P&gt;&lt;P&gt;Thanks for the tutorial information. I will definitely check it out!!&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 17:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Wilcoxon-help-new-SAS-student/m-p/215514#M53044</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2015-04-03T17:19:18Z</dc:date>
    </item>
  </channel>
</rss>

