<?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 scaling variable in a dataset? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13302#M1919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow, that was easy! Thanks rick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 19:37:58 GMT</pubDate>
    <dc:creator>carbs</dc:creator>
    <dc:date>2011-12-14T19:37:58Z</dc:date>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13294#M1911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to know how to scale a variable between 0&amp;amp;1 in sas. Perhaps it's possible to do with proc stdize somehow? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 12:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13294#M1911</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2011-12-13T12:49:46Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13295#M1912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It will be helpful to provide a bit more detail on what you hope to accomplish. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 15:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13295#M1912</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-12-13T15:19:22Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13296#M1913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I simply would like to make the variable vrp scaled between 0&amp;amp;1, the dataset is attached above if it helps.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 19:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13296#M1913</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2011-12-13T19:02:40Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13297#M1914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the rules for scaling between 0 and 1. How will both 116 and -118 map to the scale from 0 to 1? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could just use the percentile, but depending on what you're doing that could make absolutely no sense. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 20:08:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13297#M1914</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-12-13T20:08:25Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13298#M1915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the variable vrp for my time-varying regression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style=": ; color: #000080; font-size: 2; font-family: 'Courier New';"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;reg&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: black; font-size: 10pt;"&gt;=spainbj &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: blue; font-size: 10pt;"&gt;outest&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: black; font-size: 10pt;"&gt;=brittenjonesspain;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: blue; font-size: 10pt;"&gt;model &lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: black; font-size: 10pt;"&gt;Identity= MKT MKT*lag(vrp) SMB SMB*lag(vrp) HML HML*lag(vrp) MOM MOM*lag(vrp)/&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: blue; font-size: 10pt;"&gt;noint&lt;/SPAN&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;﻿this is a britten-jones regression, where betas are portfolio weights. I use the variable vrp to make the portfolio weights time-varying according to lagged value of vrp. Now I need to scale the variable vrp, in order to get the portfolio weights/betas to change in a rational way. Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 10pt;"&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 20:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13298#M1915</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2011-12-13T20:25:48Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13299#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you want to standardize this variable to avoid the influence of&amp;nbsp; scale?&lt;/P&gt;&lt;P&gt;proc stdize will help you. Sure there is also a function looks like stdize() to do it.&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>Wed, 14 Dec 2011 06:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13299#M1916</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-12-14T06:17:38Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13300#M1917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I tried the proc stdize but couldn't get it working. Would someone be able to give me an example on how to proceed with the code here? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 17:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13300#M1917</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2011-12-14T17:32:30Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13301#M1918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want a linear transformation that maps your data to [0,1], use&lt;/P&gt;&lt;P&gt;proc stdize data=MyData out=StdOut method=RANGE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var vrp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This maps min(vrp) to 0 and max(vrp) to 1. The transformation is&lt;/P&gt;&lt;P&gt;x --&amp;gt; (x - min(x))/range(x)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_stdize_sect012.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_stdize_sect012.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 18:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13301#M1918</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-12-14T18:22:54Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13302#M1919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wow, that was easy! Thanks rick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13302#M1919</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2011-12-14T19:37:58Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13303#M1920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I'd like to make the linear transformation between -1 and 1, how could that be done? Checked the methods from Rick's link, but none of them seem to fit this idea straight...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13303#M1920</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2012-01-31T10:03:05Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13304#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Run PROC STDIZE with METHOD=RANGE. That creates a variable on [0,1].&lt;/P&gt;&lt;P&gt;Then run a data step that sends x --&amp;gt; 2*x-1. The new range is [-1,1]. For example:&lt;/P&gt;&lt;P&gt;data StdOut;&lt;/P&gt;&lt;P&gt;set StdOut;&lt;/P&gt;&lt;P&gt;vrp = 2*vrp - 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13304#M1921</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-01-31T10:42:12Z</dc:date>
    </item>
    <item>
      <title>scaling variable in a dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13305#M1922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; easy again, thanks a million rick!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 20:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/scaling-variable-in-a-dataset/m-p/13305#M1922</guid>
      <dc:creator>carbs</dc:creator>
      <dc:date>2012-01-31T20:31:25Z</dc:date>
    </item>
  </channel>
</rss>

