<?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 Creating a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-dataset/m-p/557894#M155598</link>
    <description>&lt;P&gt;Hello, I was given this question:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(dataset: SASHELP.BWEIGHT) Create a dataset including first 2,000 observations only in SASHELP.BWEIGHT and report the p-value of testing if two variables MomSmoke and VISIT are independent. Note that you should determine if Chi-sq test is valid or not. Up to four decimal places, please. (Hint: use PROC FREQ)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand how to calculate the p-value if the two variables are independent, I am just confused on making a new dataset including the first 2,000 observations of sashelp.bweight.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 17:22:51 GMT</pubDate>
    <dc:creator>michaelm90</dc:creator>
    <dc:date>2019-05-10T17:22:51Z</dc:date>
    <item>
      <title>Creating a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-dataset/m-p/557894#M155598</link>
      <description>&lt;P&gt;Hello, I was given this question:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(dataset: SASHELP.BWEIGHT) Create a dataset including first 2,000 observations only in SASHELP.BWEIGHT and report the p-value of testing if two variables MomSmoke and VISIT are independent. Note that you should determine if Chi-sq test is valid or not. Up to four decimal places, please. (Hint: use PROC FREQ)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand how to calculate the p-value if the two variables are independent, I am just confused on making a new dataset including the first 2,000 observations of sashelp.bweight.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-dataset/m-p/557894#M155598</guid>
      <dc:creator>michaelm90</dc:creator>
      <dc:date>2019-05-10T17:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-dataset/m-p/557895#M155599</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have (obs=2000);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use the OBS= Dataset option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=ledsoptsref&amp;amp;docsetTarget=p0h5nwbig8mobbn1u0dwtdo0c0a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=ledsoptsref&amp;amp;docsetTarget=p0h5nwbig8mobbn1u0dwtdo0c0a0.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first SAS e-course is free and covers a lot of the questions you've been asking. It may be worth taking sometime to go over the course materials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/273667"&gt;@michaelm90&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello, I was given this question:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(dataset: SASHELP.BWEIGHT) Create a dataset including first 2,000 observations only in SASHELP.BWEIGHT and report the p-value of testing if two variables MomSmoke and VISIT are independent. Note that you should determine if Chi-sq test is valid or not. Up to four decimal places, please. (Hint: use PROC FREQ)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I understand how to calculate the p-value if the two variables are independent, I am just confused on making a new dataset including the first 2,000 observations of sashelp.bweight.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-dataset/m-p/557895#M155599</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-10T17:25:24Z</dc:date>
    </item>
  </channel>
</rss>

