<?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: SAS Code list and explanations in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318159#M61843</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;That is extremely helpful! In the part of the code that our professor posted it included:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Data assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absresid = abs(resid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Proc plot data = assumps vpercent = 50 50;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;plot resid * pred&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absresid * pred / VREF = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc univariate normal plot data= assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var resid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is all following a &amp;nbsp;proc GLM function including the statement [output out = assumps p=pred r=resid";] I know the proc univariate function is supposed to help determine Normality, but Im not sure what these functions actually do. There are nowhere in my notes and just appeared oneday in the SAS code he brought up so we could copy. Are these codes supposed to be included in ever GLM function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2016 19:41:04 GMT</pubDate>
    <dc:creator>dleighton</dc:creator>
    <dc:date>2016-12-11T19:41:04Z</dc:date>
    <item>
      <title>SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318132#M61834</link>
      <description>&lt;P&gt;I am learning this program for the first time for one of my biology classes. My professor hasn't really explained much to us. He just puts the codes in sas and the whole class rushes to scribble down the codes. Needless to say I'm completely lost. I'm not sure what each of these codes are for or if I'm even using them correctly. Is there any current list of sas codes for biology with explanations as to why we use the each specific test? I have a short list of tests he mentioned in passing during class.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tests:&amp;nbsp;&lt;/P&gt;&lt;P&gt;One Sample T-test&lt;/P&gt;&lt;P&gt;2 Sample T-test&lt;/P&gt;&lt;P&gt;Paired T-test&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wilcoxon Test&lt;/P&gt;&lt;P&gt;ANOVA 1 and 2 way&lt;/P&gt;&lt;P&gt;Factoral ANOVA&lt;/P&gt;&lt;P&gt;Mannwhitney U test&lt;/P&gt;&lt;P&gt;Chi-squared&lt;/P&gt;&lt;P&gt;Fischer's Exact&lt;/P&gt;&lt;P&gt;Tukey HSD and LSD&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regression&lt;/P&gt;&lt;P&gt;Correlation - Spearman&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I've been looking though the SAS help webside and I'm still not finding all the answers I need. I have this final exam on Wednesday, if anyone could help point me in a direction or knows the answer it would be appreciated. Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 16:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318132#M61834</guid>
      <dc:creator>dleighton</dc:creator>
      <dc:date>2016-12-11T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318144#M61835</link>
      <description>&lt;P&gt;You can find at least some of these references in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;A href="http://support.sas.com/kb/30/333.html" target="_self"&gt;Usage Note &lt;I&gt;30333: &lt;/I&gt;FASTats: Frequently Asked-For Statistics&lt;/A&gt;&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These aren't specific to biology at all, but each stat listed does have a link to the SAS procedure or technique you can use to calculate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 17:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318144#M61835</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-12-11T17:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318146#M61836</link>
      <description>&lt;P&gt;If you line up each test with a SAS Procedure you could read the overview section and put together a list of definitions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend the STATSOFT textbook though, to get an idea of what each test is quickly. Have you taken a statistics course at Unoversity? A first level stats course covers most of what you're mentioning.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most are under Basic and Descriptive statistics but you can also look them up in the Glossary.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.statsoft.com/Textbook/Basic-Statistics" target="_blank"&gt;http://www.statsoft.com/Textbook/Basic-Statistics&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a lot to learn for Wednesday...Good Luck&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 17:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318146#M61836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-11T17:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318153#M61840</link>
      <description>&lt;P&gt;I did take stats at my university but our professor pushed more for excel or doing the problems by hand. I have a basic foundation of terms and procedures. The SAS system is completely new to me and some of the coding I'm not quite sure why it's needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all the responses with the links. I am looking through them now. If there was a better background from my professor I might understand the output a little better.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 17:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318153#M61840</guid>
      <dc:creator>dleighton</dc:creator>
      <dc:date>2016-12-11T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318154#M61841</link>
      <description>Hi:&lt;BR /&gt;  The Statistics 1 e-learning class is free as self-paced e-learning for any adult learner. You can activate the class by setting up a SAS Profile and clicking the Start button on this page: &lt;A href="https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library" target="_blank"&gt;https://support.sas.com/edu/elearning.html?ctry=us&amp;amp;productType=library&lt;/A&gt; and the first lesson has an overview of statistics.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sun, 11 Dec 2016 18:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318154#M61841</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-11T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318158#M61842</link>
      <description>&lt;P&gt;Another way to do this is to look at what PROCs your code contains and review the documentation for those procedures. Specifically, walking through the examples is a good idea. I've tried to identify the relevant tests for you below, but reviewing the code samples is a better bet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tests:&lt;/P&gt;
&lt;P&gt;PROC TTEST&lt;BR /&gt;One Sample T-test&lt;BR /&gt;2 Sample T-test&lt;BR /&gt;Paired T-test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC ANOVA&lt;BR /&gt;ANOVA 1 and 2 way&lt;BR /&gt;Factoral ANOVA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC NPAR1WAY&lt;BR /&gt;Mannwhitney U test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ&lt;BR /&gt;Chi-squared&lt;BR /&gt;Fischer's Exact&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure??&lt;BR /&gt;Tukey HSD and LSD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC REG/GLM?&amp;nbsp;&lt;BR /&gt;Regression&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC CORR&lt;/P&gt;
&lt;P&gt;Correlation - Spearman&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 19:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318158#M61842</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-11T19:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318159#M61843</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;That is extremely helpful! In the part of the code that our professor posted it included:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Data assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absresid = abs(resid);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Proc plot data = assumps vpercent = 50 50;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;plot resid * pred&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absresid * pred / VREF = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proc univariate normal plot data= assumps;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var resid;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; quit;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This is all following a &amp;nbsp;proc GLM function including the statement [output out = assumps p=pred r=resid";] I know the proc univariate function is supposed to help determine Normality, but Im not sure what these functions actually do. There are nowhere in my notes and just appeared oneday in the SAS code he brought up so we could copy. Are these codes supposed to be included in ever GLM function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 19:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318159#M61843</guid>
      <dc:creator>dleighton</dc:creator>
      <dc:date>2016-12-11T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318169#M61849</link>
      <description>&lt;P&gt;Learning to use the documentation is worth some time, in general when learning the language.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC GLM - OUTPUT statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_syntax17.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_glm_syntax17.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAkeyword"&gt;OUT=&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;SAS-data-set&amp;gt; -&amp;gt; This is the name of the data set created.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;P(PREDICTED) = &amp;lt;variable-name&amp;gt; -&amp;gt; n&lt;SPAN&gt;ame of the variable created that corresponds to the residual value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;R(RESIDUAL) = &amp;lt;variable-name&amp;gt; -&amp;gt; name of the variable created that corresponds to the residual value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the GLM procedure creates a dataset&amp;nbsp;called ASSUMPS that contains at least two variables, one for the predicted value and one for the residual value of the model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A data step can be used for a variety of things, in this case it's creating a variable using the ABS() function.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0xkrj83an7dknn1sgukpmnphcje.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0xkrj83an7dknn1sgukpmnphcje.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ABS() -&amp;gt;&amp;nbsp;&lt;SPAN&gt;Returns the absolute value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So in this step you're creating a variable called ABSRESID that contains the absolute value of the residual.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data assumps;
set assumps;
absresid = abs(resid);
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure it was PROC PLOT and not SGPLOT? I can't find a reference to PROC PLOT but believe it was used back in the day.&lt;/P&gt;
&lt;P&gt;This procedure is creating two graphs, one for residual by predicted and one for the absolute value of the residual by the predicted value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's also &amp;nbsp;missing a semi-colon.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc plot data = assumps vpercent = 50 50;
plot resid * pred absresid * pred / VREF = 0;
Quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The next step, PROC UNIVARIATE is looking to see if the variable RESID is normally distributed. This is the assumption for linear regression - the error is normally distributed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate normal plot data= assumps;
var resid;
quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to do this in real life, I would consider the following. This would produce a diagnostic and residuals plots that would help both assess normality and any issues with your regressions - ie outliers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class plots=(diagnostics residuals);
model weight = height age;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want help understanding the output you can look at either the examples in the PROC or at this page, which has annotated output for many common procs you're looking at, based on your questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/AnnotatedOutput/" target="_blank"&gt;http://www.ats.ucla.edu/stat/AnnotatedOutput/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2016 21:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318169#M61849</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-11T21:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code list and explanations</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318291#M61853</link>
      <description>&lt;P&gt;A warning about coding following someone else's examples:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/119180"&gt;@dleighton&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;That is extremely helpful! In the part of the code that our professor posted it included:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Data assumps;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set assumps;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;absresid = abs(resid);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Run;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please be &lt;STRONG&gt;extremely cautious&lt;/STRONG&gt;, I would recommend almost never, use the code structure&amp;nbsp;&amp;nbsp; Data datasetname; Set datasetname;&lt;/P&gt;
&lt;P&gt;The step replaces the original data. Depending on possible code logic errors (high probability when learning a programming language) or typos it is very easy to destroy your original data. If you use this approach you should make sure that you can always get back to the original data. One example from code I inherited involved recodeing data from a 1 and 2 value coding to a 0 and 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data example;
   set example;
   var = var -1;
   /* other code was here*/
run;&lt;/PRE&gt;
&lt;P&gt;Looks simple&amp;nbsp; and much like your professor's example. However the code had a change needed in the "other code" indicated above. So the change was made and rerun. Now the values that had been 2, after the FIRST pass were reduced to 1 and with the second pass further reduced to 0. So all values of var became either missing or 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff00ff"&gt;You have been warned. &lt;FONT color="#000000"&gt;Less obvious are if the codes switch 0 to 1 and 1 to 0 (which I also inherited). That resulted in the rate of a reportable item changing from 56 percent to 44 percent and everyone in the organization thought there had been a drastic change from the previous year 55 percent.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 15:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Code-list-and-explanations/m-p/318291#M61853</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-12T15:47:15Z</dc:date>
    </item>
  </channel>
</rss>

