<?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: Looking for sample data for example in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724283#M224861</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 07 Mar 2021 14:55:11 GMT</pubDate>
    <dc:creator>Visiting</dc:creator>
    <dc:date>2021-03-07T14:55:11Z</dc:date>
    <item>
      <title>Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724149#M224828</link>
      <description>&lt;P&gt;Found a paper about logistic regression for small sample size, here is the link for the paper:&lt;/P&gt;&lt;P&gt;Rare Events or Non-Convergence with a Binary Outcome?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4654-2020.pdf" target="_self"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4654-2020.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know where can find the datasets SPARSE and SPREAD that were used in the exampleS? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 14:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724149#M224828</guid>
      <dc:creator>Visiting</dc:creator>
      <dc:date>2021-03-06T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724267#M224849</link>
      <description>&lt;P&gt;Write e-mail to author ?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 11:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724267#M224849</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-07T11:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724268#M224850</link>
      <description>Or you could re-produce it by the result of PROC FREQ in paper .</description>
      <pubDate>Sun, 07 Mar 2021 11:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724268#M224850</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-07T11:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724270#M224852</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Or you could re-produce it by the result of PROC FREQ in paper .&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly. But the challenging (and interesting!) part is the AGE distribution in dataset SPARSE. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm working on that and I see chances to find solutions for the subgroup with &lt;FONT face="courier new,courier"&gt;vvalue(Complication)='Yes'&lt;/FONT&gt;&amp;nbsp;(N=9).&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 11:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724270#M224852</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-07T11:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724279#M224859</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/107944"&gt;@Visiting&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;has already suggested, it's easy to reproduce the (formatted) categorical variables of the two datasets by using the PROC FREQ outputs shown in the paper.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value yesno
1='Yes'
2='No';
run;

data sparse;
do complication=1, 2;
  do procedure='New', 'Old';
    input _n_ @@;
    do _n_=1 to _n_;
      output;
    end;
  end;
end;
format complication yesno.;
cards;
0 9 30 191
;

data spread;
do event=1, 2;
  do group=1, 2;
    input _n_ @@;
    do _n_=1 to _n_;
      output;
    end;
  end;
end;
format event yesno.;
cards;
4 15 11 195
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With these datasets you can reproduce tables 1 - 7, 10 and 11 of the paper. For table 4 add the option &lt;FONT face="courier new,courier"&gt;order=formatted&lt;/FONT&gt; to the PROC FREQ statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, only tables 8 and 9 (involving variable AGE) remain. I'm sure other people have worked on this type of problem before -- creating data from given summary statistics -- so there must be more advanced techniques for this than I'm aware of.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From table 8 we get N=9, Mean=43.44 and Std=5.81 for AGE in the subgroup with &lt;FONT face="courier new,courier"&gt;vvalue(complication)='Yes'&lt;/FONT&gt;. Mostly, age values in clinical studies are integers. This together with the combination of N=9 and the decimals .44 of the mean suggest that the sum of the nine age values is 9*43.4444444...=391. The formula Var(X)=E(X²)-E(X)² applied to the discrete uniform distribution on the nine age values &lt;FONT face="courier new,courier"&gt;x1, ..., x9&lt;/FONT&gt; yields (after multiplying with N²=81):&lt;/P&gt;
&lt;PRE&gt;9*uss(of x1-x9) = sum(of x1-x9)**2 + 8*9*std(of x1-x9)**2&lt;/PRE&gt;
&lt;P&gt;Given the inequality &lt;FONT face="courier new,courier"&gt;5.805&amp;lt;=std(of x1-x9)&amp;lt;5.815&lt;/FONT&gt; from the rounded Std value of 5.81, we conclude that&lt;/P&gt;
&lt;PRE&gt;155308 &amp;lt;= 9*uss(of x1-x9) &amp;lt;= 155315&lt;/PRE&gt;
&lt;P&gt;since&amp;nbsp;&lt;FONT face="courier new,courier"&gt;9*uss(of x1-x9)&lt;/FONT&gt; is an integer. But&amp;nbsp;&lt;FONT face="courier new,courier"&gt;uss(of x1-x9)&lt;/FONT&gt; itself is an integer, too, and only one of the integers 155308, ..., 155315 is divisible by 9, namely 155313, hence:&lt;/P&gt;
&lt;PRE&gt;uss(of x1-x9)=17257  (and std(of x1-x9)=sqrt(304)/3=5.811865...)&lt;/PRE&gt;
&lt;P&gt;Number theorists could certainly tell us more about the ways 17257 can be written as a sum of 9 squares ... and even with the constraint&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sum(of x1-x9)=391&lt;/FONT&gt; there will be a number of solutions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arranging and shifting integers with sum 391, centered around the rounded mean value 43 I found this particular solution for x1, ..., x9 even without letting the computer search through large numbers of combinations:&lt;/P&gt;
&lt;PRE&gt;36 38 39 41 43 46 46 47 55&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you (unlike me) have SAS/OR, I think you can find all possible solutions for the above nine age values (assuming a reasonable age range, say, 18 - 90), tackle the second subgroup (N=221) in a similar way and ideally take table 9 of the paper into account in the optimization. Good luck and thanks for asking this inspiring question!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 14:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724279#M224859</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-07T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for sample data for example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724283#M224861</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 14:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looking-for-sample-data-for-example/m-p/724283#M224861</guid>
      <dc:creator>Visiting</dc:creator>
      <dc:date>2021-03-07T14:55:11Z</dc:date>
    </item>
  </channel>
</rss>

