<?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: Two way anova for clinical trial in SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Two-way-anova-for-clinical-trial-in-SAS/m-p/516112#M3071</link>
    <description>&lt;P&gt;You can use a DATA Step to read in your data.&amp;nbsp; With the small amount of data, using a DATA Step will be the quickest way to get your data into a SAS data set.&amp;nbsp; Try something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt; input trt $ y;&lt;BR /&gt; datalines;&lt;BR /&gt;TD 1.6&lt;BR /&gt;TN 2.4&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need 1 line for each observation, so just keep adding lines below the datalines; command and above the semicolon and run; lines.&amp;nbsp; Once you have the data typed in, submit that code and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=test;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to make sure the data is in the data set correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once your data is in a SAS data set, you can use PROC GLM to analyze your experiment.&amp;nbsp; Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data=test;&lt;/P&gt;
&lt;P&gt;class trt;&lt;/P&gt;
&lt;P&gt;model y=trt;&lt;/P&gt;
&lt;P&gt;lsmeans trt / adjust=dunnett pdiff=control('TD');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should do it.&amp;nbsp; The LSMEANS statement says to compare each of the treatment levels of the variable TRT to the control level (as specified through the PDIFF= sub-option).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find documentation on PROC GLM here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;GLM Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 20:46:22 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2018-11-26T20:46:22Z</dc:date>
    <item>
      <title>Two way anova for clinical trial in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-way-anova-for-clinical-trial-in-SAS/m-p/515736#M2983</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have clinical trial data, where I have control and treatment variables. The treatment variables have three readings for each.&lt;/P&gt;&lt;P&gt;How can I conduct this analysis and how to import this data properly.&lt;/P&gt;&lt;P&gt;Example of my data: TD is control. TN and PW are treatments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to test TD against TN and&amp;nbsp; PW:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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; TD&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; TN&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;PW&lt;/P&gt;&lt;P&gt;24H&amp;nbsp; &amp;nbsp; &amp;nbsp;20.3&amp;nbsp; &amp;nbsp;21.2&amp;nbsp; &amp;nbsp;20.6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 30.1&amp;nbsp; 31&amp;nbsp; &amp;nbsp; &amp;nbsp; 32&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;40&amp;nbsp; 40.1 42&lt;/P&gt;&lt;P&gt;48H&amp;nbsp; &amp;nbsp; &amp;nbsp;19.5&amp;nbsp; &amp;nbsp; 20&amp;nbsp; &amp;nbsp; &amp;nbsp; 21&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18&amp;nbsp; &amp;nbsp;18.1&amp;nbsp; &amp;nbsp;18.3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 40&amp;nbsp; 41&amp;nbsp; &amp;nbsp;42&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 18:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-way-anova-for-clinical-trial-in-SAS/m-p/515736#M2983</guid>
      <dc:creator>Barkamih</dc:creator>
      <dc:date>2018-11-24T18:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two way anova for clinical trial in SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-way-anova-for-clinical-trial-in-SAS/m-p/516112#M3071</link>
      <description>&lt;P&gt;You can use a DATA Step to read in your data.&amp;nbsp; With the small amount of data, using a DATA Step will be the quickest way to get your data into a SAS data set.&amp;nbsp; Try something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt; input trt $ y;&lt;BR /&gt; datalines;&lt;BR /&gt;TD 1.6&lt;BR /&gt;TN 2.4&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need 1 line for each observation, so just keep adding lines below the datalines; command and above the semicolon and run; lines.&amp;nbsp; Once you have the data typed in, submit that code and then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=test;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to make sure the data is in the data set correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once your data is in a SAS data set, you can use PROC GLM to analyze your experiment.&amp;nbsp; Something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data=test;&lt;/P&gt;
&lt;P&gt;class trt;&lt;/P&gt;
&lt;P&gt;model y=trt;&lt;/P&gt;
&lt;P&gt;lsmeans trt / adjust=dunnett pdiff=control('TD');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;should do it.&amp;nbsp; The LSMEANS statement says to compare each of the treatment levels of the variable TRT to the control level (as specified through the PDIFF= sub-option).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find documentation on PROC GLM here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;GLM Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 20:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-way-anova-for-clinical-trial-in-SAS/m-p/516112#M3071</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2018-11-26T20:46:22Z</dc:date>
    </item>
  </channel>
</rss>

