<?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 Data Sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/259874#M309841</link>
    <description>&lt;P&gt;The example you show uses RANDNORMAL function to simulate correlated variables. Presumably you also&amp;nbsp;want to generate correlated observations? The book &lt;EM&gt;Simulating Data with SAS &lt;/EM&gt;covers mixed models in Chapter 12, pp. 230-242.&amp;nbsp; The article&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2012/11/05/constructing-common-covariance-structures.html" target="_self"&gt;"Constructing common covariance structures"&lt;/A&gt; (from Chapter 10) shows some related computations.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 19:40:24 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-03-29T19:40:24Z</dc:date>
    <item>
      <title>Creating Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254704#M309837</link>
      <description>&lt;P&gt;I am trying to create different data sets on SAS with specifed variance/covariances on SAS university edition, but I am very unsure how to go about this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 11:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254704#M309837</guid>
      <dc:creator>as00502</dc:creator>
      <dc:date>2016-03-05T11:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254708#M309838</link>
      <description>&lt;P&gt;Your trying to simulate data? If so read Rick Wicklins blog and/or book on simulating data in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 12:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254708#M309838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-05T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254776#M309839</link>
      <description>&lt;P&gt;You will need to specify the distribution as well. Check out the RAND() function.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 21:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/254776#M309839</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-05T21:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/258471#M309840</link>
      <description>&lt;P&gt;I have used Rick Wilkins' method to simulate multivariate normal data with a set covaraince matrix. I am ultimately trying to carry out mixed model analysis on this data. I am unsure how to split it up into groups, as it is already split into 'x1'...'x4'. This is the code I am using, if you happen to have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc iml;&lt;BR /&gt;Mean = {1, 2, 3, 4}; &lt;BR /&gt;Cov = {0.5 0 0 0, 0 0.5 0 0, 0 0 0.5 0, 0 0 0 0.5};&lt;BR /&gt;N = 1000; &lt;BR /&gt;call randseed(123);&lt;BR /&gt;X = RandNormal(N, Mean, Cov); &lt;BR /&gt;SampleMean = mean(X);&lt;BR /&gt;SampleCov = cov(X);&lt;BR /&gt;varNames = "x1":"x4";&lt;/P&gt;
&lt;P&gt;print SampleMean[colname=varNames],&lt;BR /&gt;SampleCov[colname=varNames rowname=VarNames];&lt;BR /&gt;create MVN from X[colname=varNames]; &lt;BR /&gt;append from X; &lt;BR /&gt;close MVN;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:02:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/258471#M309840</guid>
      <dc:creator>as00502</dc:creator>
      <dc:date>2016-03-23T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/259874#M309841</link>
      <description>&lt;P&gt;The example you show uses RANDNORMAL function to simulate correlated variables. Presumably you also&amp;nbsp;want to generate correlated observations? The book &lt;EM&gt;Simulating Data with SAS &lt;/EM&gt;covers mixed models in Chapter 12, pp. 230-242.&amp;nbsp; The article&amp;nbsp;&lt;A href="http://blogs.sas.com/content/iml/2012/11/05/constructing-common-covariance-structures.html" target="_self"&gt;"Constructing common covariance structures"&lt;/A&gt; (from Chapter 10) shows some related computations.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 19:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Data-Sets/m-p/259874#M309841</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-29T19:40:24Z</dc:date>
    </item>
  </channel>
</rss>

