<?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 Pull unique value from a dataset in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703608#M5345</link>
    <description>&lt;P&gt;Hi, I am trying to assign a value to a proc iml input from my datatset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;NumWalks = 100;&lt;BR /&gt;NumSteps = 52;&lt;BR /&gt;Mean = 0.003;&lt;BR /&gt;SD = 0.03;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to assign mean and std from dataset of another table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STOCKNAME&amp;nbsp; &amp;nbsp; &amp;nbsp;MEAN&amp;nbsp; &amp;nbsp; &amp;nbsp;STD&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.003&amp;nbsp; &amp;nbsp; &amp;nbsp;0.034&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.006&amp;nbsp; &amp;nbsp; &amp;nbsp;0.05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I pull the mean and std value from the other dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 13:14:20 GMT</pubDate>
    <dc:creator>shubhodasgupta</dc:creator>
    <dc:date>2020-12-04T13:14:20Z</dc:date>
    <item>
      <title>Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703608#M5345</link>
      <description>&lt;P&gt;Hi, I am trying to assign a value to a proc iml input from my datatset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;NumWalks = 100;&lt;BR /&gt;NumSteps = 52;&lt;BR /&gt;Mean = 0.003;&lt;BR /&gt;SD = 0.03;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to assign mean and std from dataset of another table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;STOCKNAME&amp;nbsp; &amp;nbsp; &amp;nbsp;MEAN&amp;nbsp; &amp;nbsp; &amp;nbsp;STD&lt;/P&gt;&lt;P&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.003&amp;nbsp; &amp;nbsp; &amp;nbsp;0.034&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.006&amp;nbsp; &amp;nbsp; &amp;nbsp;0.05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I pull the mean and std value from the other dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703608#M5345</guid>
      <dc:creator>shubhodasgupta</dc:creator>
      <dc:date>2020-12-04T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703627#M5346</link>
      <description>Hard to understand what you are trying to do ?&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input STOCKNAME   $  MEAN     STD;&lt;BR /&gt;cards;&lt;BR /&gt;A                          0.003     0.034&lt;BR /&gt;B                          0.006     0.05&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;use have ;&lt;BR /&gt;read all var{STOCKNAME  MEAN     STD} ;&lt;BR /&gt;close;&lt;BR /&gt;Mean = MEAN[1];&lt;BR /&gt;SD = STD[1];&lt;BR /&gt;&lt;BR /&gt;print mean sd;&lt;BR /&gt;quit;</description>
      <pubDate>Fri, 04 Dec 2020 13:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703627#M5346</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-04T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703630#M5347</link>
      <description>&lt;P&gt;Thank you. I am trying to create a table where the mean and SD will vary as per the input table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;NumWalks = 100;&lt;BR /&gt;NumSteps = 52;&lt;BR /&gt;Mean = 0.003 (want to pull this value from have for next steps);&lt;BR /&gt;SD = 0.03 (want to pull this value from have for next steps);&lt;BR /&gt;&lt;BR /&gt;x = j(NumSteps, NumWalks);&lt;BR /&gt;call randseed(1234);&lt;BR /&gt;call randgen(x, "Normal", Mean, SD);&lt;/P&gt;&lt;P&gt;y = j(NumSteps, NumWalks);&lt;/P&gt;&lt;P&gt;z = x + y;&lt;/P&gt;&lt;P&gt;do i = 1 to NumWalks;&lt;BR /&gt;z[,i] = cuprod(z[,i]);&lt;BR /&gt;end;&lt;BR /&gt;create t1 from z[colname='COL']; append from z;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data t2;&lt;BR /&gt;WEEK = _N_;&lt;BR /&gt;set t1;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703630#M5347</guid>
      <dc:creator>shubhodasgupta</dc:creator>
      <dc:date>2020-12-04T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703633#M5348</link>
      <description>data have;&lt;BR /&gt;input STOCKNAME $ MEAN STD;&lt;BR /&gt;cards;&lt;BR /&gt;A 0.003 0.034&lt;BR /&gt;B 0.006 0.05&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc iml;&lt;BR /&gt;use have ;&lt;BR /&gt;read all var{STOCKNAME MEAN STD} ;&lt;BR /&gt;close;&lt;BR /&gt;&lt;BR /&gt;NumWalks = 100;&lt;BR /&gt;NumSteps = 52;&lt;BR /&gt;Mean = MEAN[1];&lt;BR /&gt;SD = STD[1];&lt;BR /&gt;&lt;BR /&gt;x = j(NumSteps, NumWalks);&lt;BR /&gt;call randseed(1234);&lt;BR /&gt;call randgen(x, "Normal", Mean, SD);&lt;BR /&gt;&lt;BR /&gt;y = j(NumSteps, NumWalks);&lt;BR /&gt;&lt;BR /&gt;z = x + y;&lt;BR /&gt;&lt;BR /&gt;do i = 1 to NumWalks;&lt;BR /&gt;z[,i] = cuprod(z[,i]);&lt;BR /&gt;end;&lt;BR /&gt;create t1 from z[colname='COL']; append from z;&lt;BR /&gt;quit;</description>
      <pubDate>Fri, 04 Dec 2020 14:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703633#M5348</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-04T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703634#M5349</link>
      <description>&lt;P&gt;Please explain further. Show us examples of the input table(s) and the desired output.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703634#M5349</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-04T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pull unique value from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703636#M5350</link>
      <description>&lt;P&gt;Thank you. Got my final result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Pull-unique-value-from-a-dataset/m-p/703636#M5350</guid>
      <dc:creator>shubhodasgupta</dc:creator>
      <dc:date>2020-12-04T14:07:39Z</dc:date>
    </item>
  </channel>
</rss>

