<?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 What's the concept of &amp;quot;nesting&amp;quot; in SAS? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442648#M4820</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code provided by our instructor was as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE DATA = boats;
   CLASS Port Locomotion Type;
   TABLE Port, Locomotion*Type;
   TITLE 'Number of Boats by Port, Locomotion, and Type';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Under&amp;nbsp;"Table" command,&lt;/P&gt;&lt;P&gt;The "," (comma) means "crossing", and the "*"( the asterisk) means "nesting"&lt;/P&gt;&lt;P&gt;I am a bit confused about these two concepts.&lt;/P&gt;&lt;P&gt;I know "crossing" is like row and column,&lt;/P&gt;&lt;P&gt;but what about "nesting"?&lt;/P&gt;&lt;P&gt;Is there anybody would like to elaborate a little bit for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 22:48:23 GMT</pubDate>
    <dc:creator>jc3992</dc:creator>
    <dc:date>2018-03-05T22:48:23Z</dc:date>
    <item>
      <title>What's the concept of "nesting" in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442648#M4820</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code provided by our instructor was as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE DATA = boats;
   CLASS Port Locomotion Type;
   TABLE Port, Locomotion*Type;
   TITLE 'Number of Boats by Port, Locomotion, and Type';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Under&amp;nbsp;"Table" command,&lt;/P&gt;&lt;P&gt;The "," (comma) means "crossing", and the "*"( the asterisk) means "nesting"&lt;/P&gt;&lt;P&gt;I am a bit confused about these two concepts.&lt;/P&gt;&lt;P&gt;I know "crossing" is like row and column,&lt;/P&gt;&lt;P&gt;but what about "nesting"?&lt;/P&gt;&lt;P&gt;Is there anybody would like to elaborate a little bit for me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 22:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442648#M4820</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-05T22:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: What's the concept of "nesting" in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442652#M4824</link>
      <description>&lt;P&gt;Nesting means to for each level of Locomotion each level of type will have a&amp;nbsp;column or row&amp;nbsp;of output (depending on which dimension the nested expression is in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a data set run the code.&lt;/P&gt;
&lt;P&gt;Or look at this with a data set you should have:&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.class;
   class sex age;
   var height weight;
   tables sex*age,
          height*max weight*mean;
run;&lt;/PRE&gt;
&lt;P&gt;which generates rows of data having age values within sex values. Note that M has a row for age 16 but F doesn't as there aren't any values of age=16 for females in that data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A secondary form of nesting involves the STATISTICS choices. The example above shows one statistic for height and weight. Using parentheses we can specify multiple statistics "nested" for an analysis variable:&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.class;
   class sex age;
   var height weight;
   tables sex*age,
          (height weight) * (mean max);
run;&lt;/PRE&gt;
&lt;P&gt;Requests mean and maximum values for both height and weight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 23:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442652#M4824</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-05T23:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: What's the concept of "nesting" in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442679#M4834</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Understand!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the example!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 00:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/What-s-the-concept-of-quot-nesting-quot-in-SAS/m-p/442679#M4834</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-06T00:38:55Z</dc:date>
    </item>
  </channel>
</rss>

