<?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 Exact logistic regression continous variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-logistic-regression-continous-variable/m-p/357378#M18763</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to execute Exact logistic regression on a sample with a continuous variable. The sample size is 100 and below I show an extract from the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"","num","y","x"
"1",1,1,0.242106882663965
"2",1,0,-1.0215795935404
"3",1,1,-0.166510155016807
"4",1,0,-0.979868182931502
"5",1,1,0.078228780249738
"6",1,0,-0.37946718709135
"7",1,1,2.22519466020747
"8",1,0,0.0303031993682403
"9",1,0,-1.82711480734735
"10",1,0,1.1355902983012&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I use the following code:&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;proc import out = filename
          file = "/folders/myfolders/sasuser.v94/Btest.csv"
          dbms = CSV
          replace;
run;

data want;
  set filename;
  sampleid=ceil(_n_/100);  /* Assign sampleid as record blocks of 10 */  
run;


proc logistic data=want desc;
  by sampleid;
  model y = x;
  exact x / estimate = both;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(The beginning of the code I have because later on I want to have a csv file with several samples to be analyzed.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I get the following message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An exception was thrown while sending a packet to the peer.&amp;nbsp;&lt;BR /&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2017 05:17:17 GMT</pubDate>
    <dc:creator>gretaolsson</dc:creator>
    <dc:date>2017-05-10T05:17:17Z</dc:date>
    <item>
      <title>Exact logistic regression continous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-logistic-regression-continous-variable/m-p/357378#M18763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to execute Exact logistic regression on a sample with a continuous variable. The sample size is 100 and below I show an extract from the data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"","num","y","x"
"1",1,1,0.242106882663965
"2",1,0,-1.0215795935404
"3",1,1,-0.166510155016807
"4",1,0,-0.979868182931502
"5",1,1,0.078228780249738
"6",1,0,-0.37946718709135
"7",1,1,2.22519466020747
"8",1,0,0.0303031993682403
"9",1,0,-1.82711480734735
"10",1,0,1.1355902983012&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I use the following code:&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;proc import out = filename
          file = "/folders/myfolders/sasuser.v94/Btest.csv"
          dbms = CSV
          replace;
run;

data want;
  set filename;
  sampleid=ceil(_n_/100);  /* Assign sampleid as record blocks of 10 */  
run;


proc logistic data=want desc;
  by sampleid;
  model y = x;
  exact x / estimate = both;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(The beginning of the code I have because later on I want to have a csv file with several samples to be analyzed.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I get the following message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An exception was thrown while sending a packet to the peer.&amp;nbsp;&lt;BR /&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 05:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exact-logistic-regression-continous-variable/m-p/357378#M18763</guid>
      <dc:creator>gretaolsson</dc:creator>
      <dc:date>2017-05-10T05:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exact logistic regression continous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-logistic-regression-continous-variable/m-p/357438#M18766</link>
      <description>&lt;P&gt;Try EXACTONLY option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc logistic data=want exactonly desc;
  by sampleid;
  model y = x;
  exact x / estimate = both;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 May 2017 12:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exact-logistic-regression-continous-variable/m-p/357438#M18766</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-10T12:22:19Z</dc:date>
    </item>
  </channel>
</rss>

