<?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: Monthly stock returns from monthly prices in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203557#M266965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your data already in a SAS data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, what are your plans to get it into a SAS data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is already a SAS data set, what are the names of the variables?&amp;nbsp; Which ones are character and which ones are numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data complete (no months skipped in the middle)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want month over month returns, or some other returns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 16:24:44 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2015-03-17T16:24:44Z</dc:date>
    <item>
      <title>Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203556#M266964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there, How do i compute monthly stock returns using monthly end prices in sas. The data i have is for 500 different stocks stacked together. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203556#M266964</guid>
      <dc:creator>ivanpersie</dc:creator>
      <dc:date>2015-03-17T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203557#M266965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your data already in a SAS data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, what are your plans to get it into a SAS data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is already a SAS data set, what are the names of the variables?&amp;nbsp; Which ones are character and which ones are numeric?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the data complete (no months skipped in the middle)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want month over month returns, or some other returns?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203557#M266965</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-03-17T16:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203558#M266966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes its already in Sas. The Variable names are DATE TICKER&amp;nbsp; PRICE&amp;nbsp; .....All of them are Character. All months are available. And i want month over month returns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203558#M266966</guid>
      <dc:creator>ivanpersie</dc:creator>
      <dc:date>2015-03-17T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203559#M266967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you defining RETURN?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203559#M266967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-17T16:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203560#M266968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Return = Ln(Price t/ Price t-1)...where price t is today's price and price t-1 is previous month price of a given ticker.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203560#M266968</guid>
      <dc:creator>ivanpersie</dc:creator>
      <dc:date>2015-03-17T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203561#M266969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sort data=sashelp.stocks out=stocks;&lt;/P&gt;&lt;P&gt;by stock date;&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;data returns;&lt;/P&gt;&lt;P&gt;set stocks;&lt;/P&gt;&lt;P&gt;by stock;&lt;/P&gt;&lt;P&gt;prev_open=lag(open);&lt;/P&gt;&lt;P&gt;return=log(open/prev_open);&lt;/P&gt;&lt;P&gt;if first.stock then return=.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203561#M266969</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-17T16:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203562#M266970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I wondering you are having problems in how to frame or ask a question by explaining the right set of details. Let the folks know,&lt;/P&gt;&lt;P&gt;1. what does your input dataset have&lt;/P&gt;&lt;P&gt;2. variable names and type&lt;/P&gt;&lt;P&gt;3. Your wanted output i.e present us a figure of your sample dataset: have(your input dataset) and want(your output dataset)&lt;/P&gt;&lt;P&gt;4. a Convert business logic or formula, something like a defined business requirement that is meant to be used in the input to get your wanted output.&lt;/P&gt;&lt;P&gt;5. size of the dataset, long or wide and how big?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; had a link or a page that explains how to ask a question.&amp;nbsp; You really need to let us the folks know as much details(simulated) as possible to get the best possible help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203562#M266970</guid>
      <dc:creator>naveen_srini</dc:creator>
      <dc:date>2015-03-17T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203563#M266971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="2263" __jive_macro_name="document" class="jive_macro jive_macro_document" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203563#M266971</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-17T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203564#M266972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a bunch. It worked out well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203564#M266972</guid>
      <dc:creator>ivanpersie</dc:creator>
      <dc:date>2015-03-17T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203565#M266973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just another step, how do i compute the trailing/rolling standard deviation for the returns i have generated for the different Tickers/stocks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/203565#M266973</guid>
      <dc:creator>ivanpersie</dc:creator>
      <dc:date>2015-03-17T17:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly stock returns from monthly prices</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/398062#M266974</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=input; by tic date; run;
proc expand data=input out=output method = none ;
by tic;
convert ret= ret; convert ret=RETVOL / transformout=(MOVSTD 4); * 4&amp;nbsp;= number of 4 past/trailing obs to calculate std;
label RETVOL =rollingSTDofRET;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2017 11:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Monthly-stock-returns-from-monthly-prices/m-p/398062#M266974</guid>
      <dc:creator>omer2020</dc:creator>
      <dc:date>2017-09-22T11:56:01Z</dc:date>
    </item>
  </channel>
</rss>

