<?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 Create Sample with Specific Distribution in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164605#M42691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best way to take a sample from a population while controlling its characteristics? Is it possible to take a sample while specifying a min/max/mean/std dev? It's easy enough to filter something down so that you end up with the necessary averages for whatever characteristics you're looking for, but I need the distributions to look a specific way too. Any thoughts on the best way to approach this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 03:33:42 GMT</pubDate>
    <dc:creator>jjones3241</dc:creator>
    <dc:date>2014-07-03T03:33:42Z</dc:date>
    <item>
      <title>Create Sample with Specific Distribution</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164605#M42691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best way to take a sample from a population while controlling its characteristics? Is it possible to take a sample while specifying a min/max/mean/std dev? It's easy enough to filter something down so that you end up with the necessary averages for whatever characteristics you're looking for, but I need the distributions to look a specific way too. Any thoughts on the best way to approach this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 03:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164605#M42691</guid>
      <dc:creator>jjones3241</dc:creator>
      <dc:date>2014-07-03T03:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sample with Specific Distribution</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164606#M42692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea if this will work, or if it even is a legitimate method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is much easier to simulate a dataset with the characteristics that you are looking for than it would be to select and hope.&amp;nbsp; Suppose you had the simulated data in hand, and then did a match against the variable of interest in the target dataset, so that only those values that come from a known distribution would be selected.&amp;nbsp; Probably would involve some rounding and a merge using in=.&amp;nbsp; I have never seen this done before, but maybe it would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 13:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164606#M42692</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-07-03T13:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sample with Specific Distribution</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164607#M42693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not clear to me whether you are trying to specify the characteristics of the population or of the sample.&lt;/P&gt;&lt;P&gt;In simulation studies, you specify the characteristics of the population. The parameter estimates for any random sample will deviate from those population parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many ways to choose the parameters in a distribution to match the desired characteristics. Of course, you need enough parameters to satisfy all of the constraints.&amp;nbsp; For example, a uniform distribution only has two parameters, so in general you cannot make it match the four constraints.&amp;nbsp; If you want a parametric distribution with a given min/max/mean/StdDev, I'd use a (scaled) beta distribution or a truncated normal distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also choose to solve this problem by using a nonparametric specification of the CDF of the distribution. For a discussion, see &lt;A href="http://blogs.sas.com/content/iml/2014/06/18/distribution-from-quantiles/" title="http://blogs.sas.com/content/iml/2014/06/18/distribution-from-quantiles/"&gt; Approximating a distribution from published quantiles - The DO Loop&lt;/A&gt;&amp;nbsp; If your distribution is symmetric, then the mean equals the median and you can play with the interquartile range and the shape of the tails to obtain the required StdDev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 13:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/164607#M42693</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-07-07T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sample with Specific Distribution</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/608922#M76694</link>
      <description>&lt;P&gt;I have the same question. I would like to choose a sample (a control group) from a large population based on the parameters of another, defined group from the same population. Any suggestions are welcome.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 04:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/608922#M76694</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2019-12-03T04:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Sample with Specific Distribution</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/609387#M76710</link>
      <description>&lt;P&gt;This does not sound like the same question. Please start a new thread and provide more details about your population and the characteristics that you are hoping to match.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 13:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-Sample-with-Specific-Distribution/m-p/609387#M76710</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-04T13:59:06Z</dc:date>
    </item>
  </channel>
</rss>

