<?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 How do I get the standard deviation for my sales data for the last 10 years? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703863#M26062</link>
    <description>&lt;P&gt;I have a data set. I am trying to get the standard deviation for the last ten years for each of my observations. For example, I have data from 1992-2009. So I gathered data from 10 years prior to 1992 to have sufficient data. How do I calculate the STD for each year starting with 1992-2009, by taking the 10 years prior of data? For example, for 1992, I need to see the data from 1983-1992, including data from 1983 and 1992. For 1993, I use data from 1984-1993, and so on. I am trying to do this for each firm, or GVKEY from Compustat. All help appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Dec 2020 17:32:24 GMT</pubDate>
    <dc:creator>gibsonrobb</dc:creator>
    <dc:date>2020-12-05T17:32:24Z</dc:date>
    <item>
      <title>How do I get the standard deviation for my sales data for the last 10 years?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703863#M26062</link>
      <description>&lt;P&gt;I have a data set. I am trying to get the standard deviation for the last ten years for each of my observations. For example, I have data from 1992-2009. So I gathered data from 10 years prior to 1992 to have sufficient data. How do I calculate the STD for each year starting with 1992-2009, by taking the 10 years prior of data? For example, for 1992, I need to see the data from 1983-1992, including data from 1983 and 1992. For 1993, I use data from 1984-1993, and so on. I am trying to do this for each firm, or GVKEY from Compustat. All help appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 17:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703863#M26062</guid>
      <dc:creator>gibsonrobb</dc:creator>
      <dc:date>2020-12-05T17:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the standard deviation for my sales data for the last 10 years?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703865#M26063</link>
      <description>&lt;P&gt;This is called a "moving standard deviaton". PROC EXPAND will calculate it for you. See this example (where you need to use MOVSTD in place of MOVAVE) &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_expand_examples04.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=etsug&amp;amp;docsetTarget=etsug_expand_examples04.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 18:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703865#M26063</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-05T18:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the standard deviation for my sales data for the last 10 years?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703866#M26064</link>
      <description>&lt;P&gt;Thank you, I will take a look and let you know how it goes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 18:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-get-the-standard-deviation-for-my-sales-data-for-the/m-p/703866#M26064</guid>
      <dc:creator>gibsonrobb</dc:creator>
      <dc:date>2020-12-05T18:15:00Z</dc:date>
    </item>
  </channel>
</rss>

