<?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 proc surveyselect - OPTIMAL ALLOCATION in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect-OPTIMAL-ALLOCATION/m-p/229679#M12100</link>
    <description>&lt;PRE&gt;In SURVEYSELECT you can requests optimal allocation, which allocates the total sample size&lt;BR /&gt;among the strata in proportion to stratum sizes and stratum variances.&lt;BR /&gt;You can use the option ALLOC=OPTIMAL and give the stratum variances with VAR=(values).
The question: Is possible to use it with many variables? (many variances for each stratum)
Thanks and regards! &lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Oct 2015 11:54:51 GMT</pubDate>
    <dc:creator>Vltava</dc:creator>
    <dc:date>2015-10-13T11:54:51Z</dc:date>
    <item>
      <title>proc surveyselect - OPTIMAL ALLOCATION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect-OPTIMAL-ALLOCATION/m-p/229679#M12100</link>
      <description>&lt;PRE&gt;In SURVEYSELECT you can requests optimal allocation, which allocates the total sample size&lt;BR /&gt;among the strata in proportion to stratum sizes and stratum variances.&lt;BR /&gt;You can use the option ALLOC=OPTIMAL and give the stratum variances with VAR=(values).
The question: Is possible to use it with many variables? (many variances for each stratum)
Thanks and regards! &lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 11:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect-OPTIMAL-ALLOCATION/m-p/229679#M12100</guid>
      <dc:creator>Vltava</dc:creator>
      <dc:date>2015-10-13T11:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc surveyselect - OPTIMAL ALLOCATION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect-OPTIMAL-ALLOCATION/m-p/229831#M12105</link>
      <description>&lt;P&gt;The short answer is no. You could however provide &lt;STRONG&gt;proc surveyselect&lt;/STRONG&gt; with a measure of the overall variance of your variables. The determinant of the covariance matrix of your variables can be considered as such an estimate of the overall variance. It can be calculated for each strata by &lt;STRONG&gt;proc discrim&lt;/STRONG&gt;. Use &lt;STRONG&gt;ODS&lt;/STRONG&gt; to transfer the information from &lt;STRONG&gt;discrim&lt;/STRONG&gt; to &lt;STRONG&gt;surveyselect&lt;/STRONG&gt;. This example shows you how:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=myClass; by sex; run;

/* Get the determinant of the covariance matrix within each stratum */
ods select LogDet;
proc discrim data=myClass pool=no noclassify;
class sex;
var weight height age;
ods output LogDet=sexLogDet;
run;

/* 
Output dataset sexLogDet includes variables 
    FromSex : name of sex group (M or F)
    LogDet : logarithm of the determinant of the covariance matrix of each stratum
*/
 
/* Create table containing strata variances */
proc sql;
create table sexVar as
select 
    FromSex as sex length=1, /* Length must match variable in myClass dataset */
    exp(LogDet) as _VAR_
from sexLogDet
order by sex;
quit;

proc surveyselect data=myClass out=mySample sampsize=5;
strata sex / alloc=Neyman var=sexVar;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 03:24:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-surveyselect-OPTIMAL-ALLOCATION/m-p/229831#M12105</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-14T03:24:36Z</dc:date>
    </item>
  </channel>
</rss>

