<?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 weight variable in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/weight-variable/m-p/510110#M7473</link>
    <description>&lt;P&gt;How to understand weight variable here?what is it for?redm_flag=0 means negative samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect  data=lg.develop_original(where=( redm_flag =0)) noprint
method=srs rate=0.1  out=lg.develop_sury ;
run;
data lg.develop_final;
set lg.develop_ original(where=( redm_flag =1)) lg.develop_sury;
if redm_flag=1 then weight=1;
else weight=10;
run;
proc freq data= lg.develop_final;
weight weight;
table redm_flag/missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Nov 2018 03:45:13 GMT</pubDate>
    <dc:creator>Geo-</dc:creator>
    <dc:date>2018-11-03T03:45:13Z</dc:date>
    <item>
      <title>weight variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/weight-variable/m-p/510110#M7473</link>
      <description>&lt;P&gt;How to understand weight variable here?what is it for?redm_flag=0 means negative samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect  data=lg.develop_original(where=( redm_flag =0)) noprint
method=srs rate=0.1  out=lg.develop_sury ;
run;
data lg.develop_final;
set lg.develop_ original(where=( redm_flag =1)) lg.develop_sury;
if redm_flag=1 then weight=1;
else weight=10;
run;
proc freq data= lg.develop_final;
weight weight;
table redm_flag/missing;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Nov 2018 03:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/weight-variable/m-p/510110#M7473</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-11-03T03:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: weight variable</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/weight-variable/m-p/510270#M7474</link>
      <description>&lt;P&gt;The first proceu\dure&amp;nbsp;extracts 1/10th of&amp;nbsp;the observations where &lt;SPAN&gt;redm_flag=0. Each observation&amp;nbsp;gets a weight of 10 to indicate that it represents 10 observations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The DATA step merges that sample with all observations&amp;nbsp;where&amp;nbsp;redm_flag=1. Those observations get a weight of 1 to indicate that they represent 1 obs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The PROC FREQ step estimates the proportions from the weighted sample.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Nov 2018 20:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/weight-variable/m-p/510270#M7474</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-11-04T20:18:00Z</dc:date>
    </item>
  </channel>
</rss>

