<?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 procedure/STATA procedure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374924#M19653</link>
    <description>&lt;P&gt;Make a dummy variable which has a value 1 . and feed it into proc logistic .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;retain n&amp;nbsp; 1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=have;&lt;/P&gt;
&lt;P&gt;model y/n=x1-x10 /dist=bin ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 12:40:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-07-11T12:40:16Z</dc:date>
    <item>
      <title>SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374741#M19641</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My question is about converting a STATA procedure to a SAS procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Suppose I have continuous dependent&amp;nbsp;variable y, 0&amp;lt;y&amp;lt;1, some independent variables, x1 - x10 (say). The STATA procedure to estimate y is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;glm y x1-x10/// family (binomial) link(logit).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, the GLM procedure in SAS can not do logit. So, what is the SAS procedure&amp;nbsp; that corresponds to glm in STATA?&lt;/P&gt;
&lt;P&gt;The seond question is what is the best procedure in SAS that can handle the continuous proportion problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you so much.&lt;/P&gt;
&lt;P&gt;Rong&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 23:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374741#M19641</guid>
      <dc:creator>rkong13</dc:creator>
      <dc:date>2017-07-10T23:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374752#M19642</link>
      <description>Hi:&lt;BR /&gt;  I am not sure whether STATA code can directly be compared to SAS code. However, my  students have recommended this web site, maintained by UCLA. They provide an overview of SAS here: &lt;A href="http://stats.idre.ucla.edu/sas/modules/" target="_blank"&gt;http://stats.idre.ucla.edu/sas/modules/&lt;/A&gt; and an overview of data analysis examples here: &lt;A href="http://stats.idre.ucla.edu/other/dae/" target="_blank"&gt;http://stats.idre.ucla.edu/other/dae/&lt;/A&gt; that my students have recommended. The data analysis link contains a comparison of several different statistical languages: SAS, SPSS, R, and STATA. You might find it useful to read the example for doing analysis in the language you know and then reading about the same analysis when performed in a different software package.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 11 Jul 2017 00:49:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374752#M19642</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-07-11T00:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374780#M19645</link>
      <description>&lt;P&gt;Thank you, Cynthia.&lt;/P&gt;
&lt;P&gt;Those are very good sites and I appreciate your help.&lt;/P&gt;
&lt;P&gt;My question is very specific.&amp;nbsp; What is the SAS counterpart of the STATA procedure "glm". Thanks again.&lt;/P&gt;
&lt;P&gt;Rong&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 04:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374780#M19645</guid>
      <dc:creator>rkong13</dc:creator>
      <dc:date>2017-07-11T04:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374924#M19653</link>
      <description>&lt;P&gt;Make a dummy variable which has a value 1 . and feed it into proc logistic .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;retain n&amp;nbsp; 1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=have;&lt;/P&gt;
&lt;P&gt;model y/n=x1-x10 /dist=bin ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374924#M19653</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-11T12:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374938#M19654</link>
      <description>&lt;P&gt;I have never used STATA, but&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;'s method&amp;nbsp;does not give the correct parameter estimates unless you also include a WEIGHT statement that contains the number of observations for each pre-summarized rate.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/374938#M19654</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-11T13:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/375007#M19658</link>
      <description>&lt;P&gt;You say that your response, Y, has values between 0 and 1. &amp;nbsp;That is, they are proportions. &amp;nbsp;If your data are actually aggregated binary data and you have the numerator and denominator counts making up the proportions, then you can fit a logistic model in PROC LOGISTIC by using the events/trials syntax in the MODEL statement. &amp;nbsp;For an example, see the Getting Started section of the &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=statug_logistic_syntax.htm&amp;amp;locale=en" target="_self"&gt;LOGISTIC documentation&lt;/A&gt;. Specify the response in the MODEL statement as a ratio of event counts to total count. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model Nevents/Ncounts = x1-x10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if your response values are continuous proportions (such as proportions of area affected) that do not have numerator and denominator values, then models for such proportions are the so-called "fractional logit" and the 4- and 5- parameter logit models. &amp;nbsp;The fractional logit model can be fit in PROC GLIMMIX and the 4- and 5- parameter logit models can be fit using PROC NLMIXED as discussed and illustrated in &lt;A href="http://support.sas.com/kb/56992" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:20:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/375007#M19658</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-07-11T15:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS procedure/STATA procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/375136#M19666</link>
      <description>&lt;P&gt;Thanks for all of you.&lt;BR /&gt;Ksharp, the option "dist=bin" produces an error, but SAS DOES accept "link=logit". Your thinking about "retain n&amp;nbsp; 1;" is very suggestive. I haven't don't much reading about it, but you seem to suggest that any proportion problem&amp;nbsp; can be modeled by the way you indicate. But then it makes me feel a little awkward to write statements like "model k/N = ..." in references.&lt;BR /&gt;Rick_SAS, your comment on "weight" is essential. Thank you.&lt;BR /&gt;StatDave_sas, I took your suggestion about "glimmix". Thank you.&lt;/P&gt;
&lt;P&gt;I am sorry. I wanted accept everybody's comments as solution, but it seems that I am only allowed to choose one. When I picked one, I am completely blocked to choose others.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 21:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-procedure-STATA-procedure/m-p/375136#M19666</guid>
      <dc:creator>rkong13</dc:creator>
      <dc:date>2017-07-11T21:22:15Z</dc:date>
    </item>
  </channel>
</rss>

