<?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 a new variable by dividing its response by the mean of the original variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622580#M183149</link>
    <description>&lt;P&gt;Hi! Thank you for your response! Is there a way in proc standardize for it to be multiplied by mean and then divided by the standard deviation (not just standardized by mean)? what is the specific command for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 23:56:41 GMT</pubDate>
    <dc:creator>mblack-732</dc:creator>
    <dc:date>2020-02-05T23:56:41Z</dc:date>
    <item>
      <title>Creating a new variable by dividing its response by the mean of the original variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622571#M183143</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm trying to create a new variable that is a "standardized" response of the original variable... that is every observation had a response value for a variable (for the sake of this question, that variable's name is "old"). Is there a way to create a new variable (called "new") such that&lt;/P&gt;&lt;P&gt;new observation response = (old observation response * mean old response)/standard deviation of old response&lt;/P&gt;&lt;P&gt;I understand that I can find these numbers by running a proc means and inputting them into these formulas... but then I have to round. Is there a way to do it without that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 23:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622571#M183143</guid>
      <dc:creator>mblack-732</dc:creator>
      <dc:date>2020-02-05T23:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable by dividing its response by the mean of the original variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622575#M183145</link>
      <description>&lt;P&gt;Sounds like you want Proc STDIZE. It has many standardization methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And example:&lt;/P&gt;
&lt;PRE&gt;proc stdize data=sashelp.class out=work.classstd
     oprefix
     sprefix=new
     method=mean;
     var height;
run;&lt;/PRE&gt;
&lt;P&gt;This standardizes Height using the mean. The Oprefix option keeps the original variable (Height), sprefix prefixes any standardized variable names with the prefix "new", creating newheight. If you have multiple variables on the var statement then you would have the original variable and a "new" standardized version for each.&lt;/P&gt;
&lt;P&gt;If neither the Oprefix or Sprefix is used the output standardized variable will have the original variable name. If you omit Oprefix but use Sprefix to name a new variable the original variable is not n the output data. The Oprefix can also add a prefix to the original variable using Oprefix=Old for example.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 23:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622575#M183145</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-05T23:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable by dividing its response by the mean of the original variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622576#M183146</link>
      <description>&lt;P&gt;Sir&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; Thank you for the notes. Super and priceless:)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 23:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622576#M183146</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-02-05T23:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable by dividing its response by the mean of the original variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622580#M183149</link>
      <description>&lt;P&gt;Hi! Thank you for your response! Is there a way in proc standardize for it to be multiplied by mean and then divided by the standard deviation (not just standardized by mean)? what is the specific command for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 23:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622580#M183149</guid>
      <dc:creator>mblack-732</dc:creator>
      <dc:date>2020-02-05T23:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable by dividing its response by the mean of the original variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622581#M183150</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266162"&gt;@mblack-732&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi! Thank you for your response! Is there a way in proc standardize for it to be multiplied by mean and then divided by the standard deviation (not just standardized by mean)? what is the specific command for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please read the documentation for Proc STDIZE. There are lots of options:&lt;/P&gt;
&lt;P&gt;METHOD= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="statug.stdize.stdizemtd"&gt;
&lt;P class="AAoutputtitle"&gt;Table 106.2: Available Standardization Methods&lt;/P&gt;
&lt;DIV class="-contents"&gt;
&lt;TABLE class="AAtabular"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH style="text-align: left; border-top-color: black; border-bottom-color: black; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid;"&gt;
&lt;P&gt;Method&lt;/P&gt;
&lt;/TH&gt;
&lt;TH style="text-align: left; border-top-color: black; border-bottom-color: black; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid;"&gt;
&lt;P&gt;Location&lt;/P&gt;
&lt;/TH&gt;
&lt;TH style="text-align: left; border-top-color: black; border-bottom-color: black; border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid;"&gt;
&lt;P&gt;Scale&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;MEAN&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Mean&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;MEDIAN&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Median&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;SUM&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Sum&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;EUCLEN&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Euclidean length&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;USTD&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Standard deviation about origin&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;STD&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Mean&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Standard deviation&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;RANGE&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Minimum&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Range&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;MIDRANGE&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Midrange&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Range/2&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;MAXABS&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Maximum absolute value&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;IQR&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Median&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Interquartile range&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;MAD&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Median&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Median absolute deviation from median&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;ABW(&lt;SPAN class=" AAmathtext"&gt;c&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Biweight one-step M-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Biweight A-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;AHUBER(&lt;SPAN class=" AAmathtext"&gt;c&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Huber one-step M-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Huber A-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;AWAVE(&lt;SPAN class=" AAmathtext"&gt;c&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Wave one-step M-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Wave A-estimate&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;AGK(&lt;SPAN class=" AAmathtext"&gt;p&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Mean&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;AGK estimate (ACECLUS)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;SPACING(&lt;SPAN class=" AAmathtext"&gt;p&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Mid-minimum spacing&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;Minimum spacing&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;L(&lt;SPAN class=" AAmathtext"&gt;p&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;L(&lt;SPAN class=" AAmathtext"&gt;p&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left;"&gt;
&lt;P&gt;L(&lt;SPAN class=" AAmathtext"&gt;p&lt;/SPAN&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="text-align: left; border-bottom-color: black; border-bottom-width: 1px; border-bottom-style: solid;"&gt;
&lt;P&gt;IN(&lt;CODE class="AAfilename"&gt;ds&lt;/CODE&gt;)&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left; border-bottom-color: black; border-bottom-width: 1px; border-bottom-style: solid;"&gt;
&lt;P&gt;Read from data set&lt;/P&gt;
&lt;/TD&gt;
&lt;TD style="text-align: left; border-bottom-color: black; border-bottom-width: 1px; border-bottom-style: solid;"&gt;
&lt;P&gt;Read from data set&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STD is what you are asking for. This is the default if no METHOD= option is provided.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 00:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-new-variable-by-dividing-its-response-by-the-mean-of/m-p/622581#M183150</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-06T00:00:32Z</dc:date>
    </item>
  </channel>
</rss>

