<?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 I have 2 data sets one with mean value for each variable(proc means output) and the other with values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108337#M22521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 data sets one with mean value for each variable(proc means output) and the other with values. I want to replace the missing values with mean value for each particular variable in the dataset.&lt;/P&gt;&lt;P&gt;Any help please.&lt;/P&gt;&lt;P&gt;I tried call symput but does it work for multiple variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 11:47:09 GMT</pubDate>
    <dc:creator>venkatard</dc:creator>
    <dc:date>2013-04-15T11:47:09Z</dc:date>
    <item>
      <title>I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108337#M22521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 data sets one with mean value for each variable(proc means output) and the other with values. I want to replace the missing values with mean value for each particular variable in the dataset.&lt;/P&gt;&lt;P&gt;Any help please.&lt;/P&gt;&lt;P&gt;I tried call symput but does it work for multiple variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 11:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108337#M22521</guid>
      <dc:creator>venkatard</dc:creator>
      <dc:date>2013-04-15T11:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108338#M22522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how you going to accomplish this with Call Symput..If possible can you provide your code which you have tried???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other then that &lt;STRONG&gt;coalesce function &lt;/STRONG&gt; will be helpful for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 12:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108338#M22522</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-04-15T12:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108339#M22523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...but............please atleast post your working / sample datasets.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data samp;&lt;BR /&gt;infile datalines missover;&lt;BR /&gt;input id sal ;&lt;BR /&gt;if missing(sal) then&amp;nbsp; sal=symget("avgsal");&lt;BR /&gt;datalines;&lt;BR /&gt;001 5000&lt;BR /&gt;002 7000&lt;BR /&gt;003 &lt;BR /&gt;004 7832&lt;BR /&gt;005 &lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint ;&lt;BR /&gt;select avg(sal)&amp;nbsp; into : avgsal&amp;nbsp; from samp ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ALLU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108339#M22523</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2013-04-15T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108340#M22524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC STDIZE, for 1 or more variables in the VAR statement and BY groups if you like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; samp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;datalines&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;missover&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; id:&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$3.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; sal ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;datalines&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffc0;"&gt;001 5000&lt;BR /&gt;002 7000&lt;BR /&gt;003 &lt;BR /&gt;004 7832&lt;BR /&gt;005 &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;;;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;stdize&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;reponly&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;missing&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=mean &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=poked;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; sal;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108340#M22524</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-15T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108341#M22525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. read in the data structure of your data.&lt;/P&gt;&lt;P&gt;make an array of all the numeric variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. read in the single row of the Means data set&lt;/P&gt;&lt;P&gt;whose variable have been autonamed&lt;/P&gt;&lt;P&gt;so that Mean is the prefix of each variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issues are getting the names of the variables aligned with their means.&lt;/P&gt;&lt;P&gt;so that the array references are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alternately you can use sql to extract the list of variable&lt;/P&gt;&lt;P&gt;and feed that list to Summary&lt;/P&gt;&lt;P&gt;which you can then use in the array statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA Update;*todo: (drop = Mean:);&lt;/P&gt;&lt;P&gt;*get the data structure for the array Valu;&lt;/P&gt;&lt;P&gt;if 0 then set Library.Mydata;&lt;/P&gt;&lt;P&gt;array Valu(*) _numeric_;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*read the Means data set -- one row -- into the set of values for updating;&lt;/P&gt;&lt;P&gt;set Means;&lt;/P&gt;&lt;P&gt;array Mean(*);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do until(EndoFile);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set Library.MyData end = EndoFile;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; do i = 1 to dim(Valu);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if Valu(I) eq . then Valu(I) = Mean(I);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL; describe table &amp;amp;syslast;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; matching maven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 17:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108341#M22525</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-15T17:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108342#M22526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can merge this 2 datasets with by variables which you have used in proc means to create multiple means values. then you can assign the mean values to missing values if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 06:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108342#M22526</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2013-04-16T06:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108343#M22527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i will give clear idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First dataset with means.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mean_score&amp;nbsp;&amp;nbsp; mean_forum&amp;nbsp;&amp;nbsp; mean_subs&lt;/P&gt;&lt;P&gt;&amp;nbsp; 23.45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43.45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12.22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second data set with original values.&lt;/P&gt;&lt;P&gt;Score&amp;nbsp;&amp;nbsp;&amp;nbsp; forum&amp;nbsp;&amp;nbsp;&amp;nbsp; subs&lt;/P&gt;&lt;P&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;145&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 87&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 98&lt;/P&gt;&lt;P&gt;15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to replace the missing values in second data set with the mean value.&lt;/P&gt;&lt;P&gt;For example in score if any value is missing it should be replaced with mean_score.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 06:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108343#M22527</guid>
      <dc:creator>venkatard</dc:creator>
      <dc:date>2013-04-16T06:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108344#M22528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take all mean values to respective Macro variables. Then in the next step use symget or simple if condition to replace the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set mean_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("Mscore", strip(put(mean_score)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("Mforum", strip(put(mean_forum)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symput("Msubs", strip(put(mean_subs)));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data hh;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set values;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if score=. then score=&amp;amp;mean_score;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else score=score;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the same for other variables, Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 06:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108344#M22528</guid>
      <dc:creator>Sudhakar_A</dc:creator>
      <dc:date>2013-04-16T06:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108345#M22529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have posted a general solution on SAS community wiki:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Replacing_Missing_with_Mean" title="http://www.sascommunity.org/wiki/Replacing_Missing_with_Mean"&gt;http://www.sascommunity.org/wiki/Replacing_Missing_with_Mean&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 10:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108345#M22529</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-16T10:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108346#M22530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On Tue, 16 Apr 2013 17:45:04 +0100, Ian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ian.wakeling@HANANI.QISTATS.CO.UK"&gt;ian.wakeling@HANANI.QISTATS.CO.UK&lt;/A&gt;&lt;SPAN&gt;&amp;gt; wrote:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &amp;gt;How about using PROC STDIZE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc stdize data&amp;nbsp;&amp;nbsp;&amp;nbsp; = old&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = new&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; missing = mean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reponly;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _numeric_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;gt;You can also impute with the median or read values from a second data set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 18:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108346#M22530</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-16T18:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108347#M22531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works Ron.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 06:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108347#M22531</guid>
      <dc:creator>venkatard</dc:creator>
      <dc:date>2013-04-18T06:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: I have 2 data sets one with mean value for each variable(proc means output) and the other with values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108348#M22532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is easy :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; if _n_ eq 1 then set mean_data;&lt;/P&gt;&lt;P&gt; set have ;&lt;/P&gt;&lt;P&gt;score=coalesce( score ,mean_score) ;&lt;/P&gt;&lt;P&gt;forum=coalesce( forum,mean_forum);&lt;/P&gt;&lt;P&gt;...........&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 09:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-have-2-data-sets-one-with-mean-value-for-each-variable-proc/m-p/108348#M22532</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-04-20T09:40:14Z</dc:date>
    </item>
  </channel>
</rss>

