<?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: Creating data from PROC MEANS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237969#M268288</link>
    <description>Very nice Answer my friend:&lt;BR /&gt;&lt;BR /&gt;Well, continuing this programation:&lt;BR /&gt;&lt;BR /&gt;Following your guides i made this data&amp;amp;colon;&lt;BR /&gt;&lt;BR /&gt;data dif_want;&lt;BR /&gt;merge mean1 mean2;&lt;BR /&gt;diff = mean_var_interest1 - mean_var_interest2;&lt;BR /&gt;a0 = (mean_var_interest1- mean_var_interest2)/30;&lt;BR /&gt;b0 = log(a0/mean_var_interest2);&lt;BR /&gt;b1 = b0/10;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I need to use a0 b0 and b1 in here:&lt;BR /&gt;&lt;BR /&gt;proc nlin data=any_other_dataset plots=all method=marquardt;&lt;BR /&gt;parms a0 = a0 b0 = b0 b1 = b1;&lt;BR /&gt;model response=a0*exp(exp(b0)*(exp(b1*observation)-1)/b1);&lt;BR /&gt;id Sample;&lt;BR /&gt;output out=est_ind1 p=pred r=resid parms=a0 b0 b1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/thanks</description>
    <pubDate>Sat, 05 Dec 2015 19:45:34 GMT</pubDate>
    <dc:creator>jonatan_velarde</dc:creator>
    <dc:date>2015-12-05T19:45:34Z</dc:date>
    <item>
      <title>Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237727#M268282</link>
      <description>&lt;P&gt;Good Night:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create data based in PROC MEANS, i need to use the information that PROC MEANS offers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 01:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237727#M268282</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-12-04T01:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237728#M268283</link>
      <description>You have two options, in addition to other procs. &lt;BR /&gt;One is the OUTPUT OUT= syntax and the other is the ODS Tables.  This example demonstrates both, as well as the STACKODS option that formats the tables. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p17h6q7ygvkl1sn13qzf947dundi.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#p17h6q7ygvkl1sn13qzf947dundi.htm&lt;/A&gt;</description>
      <pubDate>Fri, 04 Dec 2015 02:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237728#M268283</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-04T02:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237734#M268284</link>
      <description>&lt;P&gt;I would just use an OUTPUT statement with an OUT= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS DATA=SASHELP.CLASS&lt;BR /&gt;&amp;nbsp; &amp;nbsp;MEAN MIN MAX SKEW N;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;OUTPUT OUT=WORK.NEWDATA;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PRINT DATA=WORK.NEWDATA;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the PROC MEANS statement just assign whatever options you'd like to display (if you don't want the default) and use the OUT= option to name the output data set.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 03:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237734#M268284</guid>
      <dc:creator>KyleM_Corrie</dc:creator>
      <dc:date>2015-12-04T03:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237776#M268285</link>
      <description>&lt;P&gt;Thank you Reeza for your help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, it worked out, and new doubt born again (LOL).&lt;/P&gt;
&lt;P&gt;I've got 2 PROC MEANS procedures like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS DATA= data1 MEAN;&lt;BR /&gt;OUTPUT OUT=mean1;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC MEANS DATA= data2 MEAN;&lt;BR /&gt;OUTPUT OUT=mean2;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is: HOW TO CREATE A NEW DATASET USING THE DIFERENCE BETWEEN DATA ONE AND TWO (mean1 - mean2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 10:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237776#M268285</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-12-04T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237842#M268286</link>
      <description>&lt;P&gt;You'll need to combine the data sets.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want;
   set data1 data2 (in=in2);
   /* at this point I don't have any hard code to provide as you don't have any variables provided but for each variable*/
   DifVariablename = Dif (Variablename);
   If in2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The DIF function gives the subtraction across rows. You could use Variablename=Dif(variablename); if you don't care that your value is now actually the difference of means instead of an actual mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 16:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237842#M268286</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-04T16:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237847#M268287</link>
      <description>&lt;P&gt;You need to merge the data sets. I would also add names to each of the variables to help clarify the results.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=data1 noprint;
var var_interest;
output out=mean1 mean(var_interest)=mean_var_interest1;
run;

proc means data=data2 noprint;
var var_interest;
output out=mean2 mean(var_interest)=mean_var_interest2;
run;

data diff;
merge mean1 mean2;
diff = mean_var_interest1- mean_var_interest2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Dec 2015 16:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237847#M268287</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-04T16:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating data from PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237969#M268288</link>
      <description>Very nice Answer my friend:&lt;BR /&gt;&lt;BR /&gt;Well, continuing this programation:&lt;BR /&gt;&lt;BR /&gt;Following your guides i made this data&amp;amp;colon;&lt;BR /&gt;&lt;BR /&gt;data dif_want;&lt;BR /&gt;merge mean1 mean2;&lt;BR /&gt;diff = mean_var_interest1 - mean_var_interest2;&lt;BR /&gt;a0 = (mean_var_interest1- mean_var_interest2)/30;&lt;BR /&gt;b0 = log(a0/mean_var_interest2);&lt;BR /&gt;b1 = b0/10;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I need to use a0 b0 and b1 in here:&lt;BR /&gt;&lt;BR /&gt;proc nlin data=any_other_dataset plots=all method=marquardt;&lt;BR /&gt;parms a0 = a0 b0 = b0 b1 = b1;&lt;BR /&gt;model response=a0*exp(exp(b0)*(exp(b1*observation)-1)/b1);&lt;BR /&gt;id Sample;&lt;BR /&gt;output out=est_ind1 p=pred r=resid parms=a0 b0 b1;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/thanks</description>
      <pubDate>Sat, 05 Dec 2015 19:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-data-from-PROC-MEANS/m-p/237969#M268288</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2015-12-05T19:45:34Z</dc:date>
    </item>
  </channel>
</rss>

