<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Statskom</title>
	<atom:link href="http://statskom.com/tag/sas-university-edition/feed/" rel="self" type="application/rss+xml" />
	<link>http://statskom.com</link>
	<description>Clinical programming</description>
	<lastBuildDate>Thu, 05 Oct 2017 09:04:02 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.8.41</generator>
	<item>
		<title>Kaggle &#8211; Counting data with SAS University Edition &#8211; PROC FREQ</title>
		<link>http://statskom.com/kaggle-proc-freq/</link>
		<comments>http://statskom.com/kaggle-proc-freq/#comments</comments>
		<pubDate>Tue, 30 Sep 2014 10:01:33 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Kaggle]]></category>
		<category><![CDATA[SAS learning edition]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[IF THEN ELSE]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[PROC FREQ]]></category>
		<category><![CDATA[SAS university edition]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Titanic: Machine Learning from Disaster]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=403</guid>
		<description><![CDATA[<p>This series of posts is aimed both at people who want to learn more about SAS and to show how people can use the free SAS University Edition to explore the data from the Kaggle Titanic: Machine Learning from Disaster competition.&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/kaggle-proc-freq/">Kaggle &#8211; Counting data with SAS University Edition &#8211; PROC FREQ</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>This series of posts is aimed both at people who want to learn more about SAS and to show how people can use the free <a href="http://www.sas.com/en_us/software/university-edition.html">SAS University Edition</a> to explore the data from the <a href="https://www.kaggle.com/c/titanic-gettingStarted/">Kaggle Titanic: Machine Learning from Disaster </a>competition.</p>
<p>In our previous tutorial <a title="Kaggle – Getting started with SAS university edition" href="http://statskom.com/kaggle-getting-started-with-sas-university-edition/">Getting Started with SAS University Edition</a> we looked at how to import a spreadsheet into SAS and how to use PROC FREQ to explore the relationship between the categorical variable sex and the chance of  survival. In this tutorial we look in a bit more detail at the PROC FREQ procedure. This tutorial covers the following:</p>
<ul>
<li>How to use PROC FREQ to create one way tables, two way tables and more.</li>
<li>What the data in each section of the PROC FREQ output means.</li>
<li>How to use the PROC FREQ output to explore your data and draw conclusion about it.</li>
<li>How to group data together so that its PROC FREQ output is more user friendly.</li>
<li>How to produce a dataset from the PROC FREQ.</li>
<li>How to produce a graph using PROC FREQ.</li>
</ul>
<p>We assume that you already have SAS University Edition installed and have used PROC IMPORT to read the train.csv file and convert it to a SAS dataset (work.train). If you haven&#8217;t done that yet, please refer to the first tutorial.</p>
<h2>PROC FREQ</h2>
<p>Officially PROC FREQ is designed to <em>&#8216;produce one-way to n-way frequency and contingency (crosstabulation) tables&#8217; </em>what this means in practice is that it is used to answer questions such as <em>how many&#8230;? </em>or <em>what proportion of&#8230;? </em>of a particular categorical variable falls into each category. For example, what proportion of passengers survived the titanic disaster. The &#8216;n-way&#8217; section of the definition means that as well as looking at the proportion of a single variable that fall into each category, we can also look at the proportion of 2,3,&#8230;n variables which fall into particular categories, for example, a two way table might show what proportion of passengers in each class survived, whereas a threeway table might show the proportion of passengers of each gender who survived.</p>
<h3>One way frequency tables</h3>
<p>To produce a one way frequency table we use the TABLES statement along with a single variable. For example if we want to see the number and percentage of passengers who survived we would submit code like the following:</p>
<pre>PROC FREQ DATA = train;
  TABLES survived;
RUN;</pre>
<p>This would produce output similar to the below, from which we can quickly see that 38.4% of passengers in the training dataset survived and 61.6% died:<br />
<span style="line-height: 1.5em;"><a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_one_way.png"><img class="alignnone size-full wp-image-408" alt="proc_freq_one_way" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_one_way.png" width="397" height="131" /></a></span></p>
<p>&nbsp;</p>
<h3>Two way frequency tables</h3>
<p>To produce a two way frequency count, we would add a second variable to the TABLES statement.</p>
<pre>PROC FREQ DATA = train;
  TABLES sex*survived;
RUN;</pre>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_two-way1.png"><img class="alignnone size-full wp-image-423" alt="proc_freq_two-way" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_two-way1.png" width="804" height="501" /></a></p>
<p>When producing a two way tables, notice how the variable that you specify first forms the rows of the resulting output and the variable that you specify last forms the columns. Leaving the total information aside for a moment, you will notice that the table contains four cells. Each cell contains data for a particular level of the row (sex) and column(survived) variable.</p>
<p>In our example our four levels are Female and did&#8217;t survive (upper left), female and did survive (upper right), male and didn&#8217;t survive, (lower left), male and survived (lower right).</p>
<p>You will notice that within each cell there are several numbers, PROC FREQ by default PROC FREQ will supply the following information:</p>
<ul>
<li>the first number in each cell is the frequency, i.e. a count of the number of events (passengers) at the particular level of row (sex) and column (survived) variable (in our example this is the number of passengers who fall into each category, for example, 81 female didn&#8217;t survive (see the red square)).</li>
<li>the second number is the percentage, i.e. the number of events  at the particular level of row and column variable as a proportion of the total number of events expressed as a percentage  (in our example this is the frequency of passengers at each level divided by the total number of passengers present in the table, for example 52.53% of the total number of passengers are males who did not survive (see the blue square)).</li>
<li>the third number is the row percentage, i.e. the number of events present in a particular cell as a proportion of the total number of events in that row expressed as a percentage(in our example this is either the proportion of male passengers who survived or didn&#8217;t survive, divided by the total number of male passengers, or alternatively the proportion of female passengers who survived or didn&#8217;t survive, for example, 18.89% of males survived (see the green square)).</li>
<li>the fourth number is the column percentage, i.e. the number of events present in a particular cell as a proportion of the total number of events in that column expressed as a percentage (in our example this is either the proportion of survivors of a particular gender divided by the total number of survivors or the proportion of  fatalities of either gender divided by the total number of fatalities, for example, of those that survived, 68.13% were female (see the black square)).</li>
</ul>
<p>Finally the total row shows the row frequencies, i.e. the total number of males and females and the row percentages, i.e. the total number of males or females as a percentage of the total number of passengers. The total column shows the column frequencies, i.e. the total number of survivors or fatalities and the column percentages, and also the column percentages i.e. the total number of survivors or fatalities  as a percentage of the total number of passengers.</p>
<h3>n-way frequency tables</h3>
<p>Now if we wish to explore the relationship between more than two variables we can also do that with PROC FREQ, for example if we wanted to explore the relationship between PCLASS, SEX and SURVIVED we add in the additional variable to the tables statement as follows:</p>
<pre>PROC FREQ DATA = train;
  TABLES pclass*sex*survived /NOCOL NOPERCENT ;
RUN;</pre>
<p>This will produce one two way frequency table (sex by survived) for each level of the PCLASS variable (1,2,3), giving a total of three tables as shown below. Note also that we used the NOCOL option to surpress the printing of the column percentages and NOPERCENT to surpress the printing of the overall percentages. We are not interested in these figures at the moment, so removing them helps to draw attention to the items of interest.<br />
<a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_3way1.png"><img class="alignnone size-full wp-image-413" alt="proc_freq_3way" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_3way1.png" width="243" height="545" /></a></p>
<p>This table gives us useful information which is not available in the two way table, for example it tells us that:</p>
<ul>
<li>among 1st class female passengers, 96.81% survived (blue square in first table).</li>
<li><span style="line-height: 1.5em;"><span style="line-height: 1.5em;">among 2nd class female passengers, 92.11% survived (green square in second table).</span></span></li>
<li>among 3rd class female passengers, 50% survived (red square in third table).</li>
</ul>
<p>Similarly we see that 2nd and 3rd class male passengers had a very low chance of survival, whereas around one in three first class male passengers survived.</p>
<h3>Output datasets</h3>
<p>Sometimes it can be useful to use the results of printed output in subsequent calculations. PROC FREQ has an option which enables you to create an output dataset containing the results of its calculations. To do this use the OUT= option and the dataset name, as shown below:</p>
<pre>PROC FREQ DATA = train;
  TABLES pclass*sex*survived /out = train_freq ;
RUN;</pre>
<p>This will create the dataset train_freq shown below in your work library (highlighted in the red box)<br />
<a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_dset3.png"><img class="alignnone size-full wp-image-433" alt="proc_freq_dset" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_dset3.png" width="793" height="336" /></a></p>
<p>&nbsp;</p>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_dset_dset.png"><img class="alignnone size-full wp-image-432" alt="proc_freq_dset_dset" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_dset_dset.png" width="1560" height="352" /></a></p>
<h3>PROC FREQ with continuos data</h3>
<p>PROC FREQ is works best with categorical data that takes a relatively  small number of values, the age variable takes 88 different values (excluding the passengers with unknown age), lets see what happens when we use the PROC FREQ procedure on the age variable:</p>
<pre>PROC FREQ DATA = train_bin;
  TABLES age *survived   ;
RUN;

<a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_age.png"><img class="alignnone size-full wp-image-416" alt="proc_freq_age" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_age.png" width="286" height="831" /></a></pre>
<p>The output it produces is so large that we can only fit a small section of it on the page at any one time. Does it contain any useful information? Perhaps but the number of passengers in each age group is so small that it&#8217;s difficult to draw any conclusions from it. A better approach is to first group the data into a smaller number of categories and then to use this grouped data to in your PROC FREQ. This process of grouping data is formally called binning. There are several ways to achieve this, one simple way is to use the IF&#8230;THEN&#8230;ELSE logic we learnt in the first tutorial.</p>
<p>This can be achieved using code similar to the below, here we create a new variable AGE_GRP which groups the ages of passengers into 10 year bins.</p>
<p>&nbsp;</p>
<pre>DATA train_bin;
  LENGTH age_grp $20;
  SET train;
  IF .&lt; age &lt;= 10    THEN age_grp = "0-le10";
  ELSE IF 10&lt;age&lt;=20 THEN age_grp = "gt10-le20";
  ELSE IF 20&lt;age&lt;=30 THEN age_grp = "gt20-le30";
  ELSE IF 30&lt;age&lt;=40 THEN age_grp = "gt30-le40";
  ELSE IF 40&lt;age&lt;=50 THEN age_grp = "gt40-le50";
  ELSE IF 50&lt;age     THEN age_grp = "gt50-le20";
RUN;

PROC FREQ DATA = train_bin;
  TABLES age_grp *survived /nocol nopercent ;
RUN;</pre>
<p>The output of this procedure will be as shown below:</p>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_age_bin.png"><img class="alignnone size-full wp-image-417" alt="proc_freq_age_bin" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_age_bin.png" width="177" height="286" /></a></p>
<p>This table is definitely more informative than the table in which we treated each age as a separate category. We know from the one way frequency table we produced at the beginning of the tutorial that 38% of passengers in the training dataset survived. We can see from this table that 59% of the passengers in the training dataset who were under 10 survived. Suggesting that children were much more likely to survive the disaster. The previous tutorial showed that women were far more likely to survive than men, our data therefore suggests that the idea that &#8216;<em>women and children&#8217; </em> had priority in the lifeboats is probably based on fact.</p>
<p>If you open the train_bin dataset you will notice that the age variable is often missing. SAS represents a missing numeric variable with the period symbol. When we assigned our observations to bins, we did not assign the observations with missing values to any bin, the AGE_GRP variable is therefore missing for these observations. PROC FREQ excludes this data from its output, the number of excluded observations is shown by the &#8220;Frequency Missing = 177&#8243; line underneath the table.</p>
<h3>Graphs with PROC FREQ</h3>
<p>Finally PROC FREQ also offers the ability to create basic charts. Viewing your frequency counts in an alternative format can be very informative and with PROC FREQ this can be achieved with very little effort. Adding the option PLOTS = FREQPLOT will produce the barchart shown below.</p>
<pre>PROC FREQ DATA = train;
  TABLES embarked*survived /NOCOL NOPERCENT PLOTS = FREQPLOT  ;
RUN;</pre>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/proc_freq_graph.png"><img class="alignnone size-full wp-image-419" alt="proc_freq_graph" src="http://statskom.com/wp-content/uploads/2014/09/proc_freq_graph.png" width="680" height="709" /></a></p>
<p>From this bar chart we can quickly see that:</p>
<ul>
<li>the proportion of passengers who embarked at Cherbourne and survived seems to be much greater than the proportion who embarked at other ports.</li>
</ul>
<p>In the next tutorial we will look at how we can create and customise more complex graphs.</p>
<h3>Summary</h3>
<p>In this tutorial we have shown how PROC FREQ is a powerful tool for couting data and how ii can be used to create a printed table, a SAS dataset and a graph. We&#8217;ve also seen how this output can be used to identify patterns in your data and in particular to see whether certain subgroups have different characteristics.</p>
<p>Using the example code above as a basis try to examine the impact that different combinations of variables have on the probability of survival, by for example adding and removing variables to the tables statement and investigating the output. In the next tutorial we will look at how to create and customise more complex graphs and how to use these graphs to investigate your data.</p>
<pre></pre>
<p>The post <a rel="nofollow" href="http://statskom.com/kaggle-proc-freq/">Kaggle &#8211; Counting data with SAS University Edition &#8211; PROC FREQ</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/kaggle-proc-freq/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kaggle &#8211; Getting started with SAS university edition</title>
		<link>http://statskom.com/kaggle-getting-started-with-sas-university-edition/</link>
		<comments>http://statskom.com/kaggle-getting-started-with-sas-university-edition/#comments</comments>
		<pubDate>Wed, 24 Sep 2014 19:45:34 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Kaggle]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[IF THEN ELSE]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[PROC EXPORT]]></category>
		<category><![CDATA[PROC IMPORT]]></category>
		<category><![CDATA[SAS university edition]]></category>
		<category><![CDATA[Titanic: Machine Learning from Disaster]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=372</guid>
		<description><![CDATA[<p>This is the first of our tutorials on using SAS university edition to explore the data from the Kaggle Titanic: Machine Learning from Disaster edition. The tutorial is designed to be  roughly equivalent to the first excel lesson available on the Kaggle website. It should&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/kaggle-getting-started-with-sas-university-edition/">Kaggle &#8211; Getting started with SAS university edition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><span style="line-height: 1.5em;">This is the first of our tutorials on using SAS university edition to explore the data from the Kaggle </span><em>Titanic: Machine Learning from Disaster </em>edition. The <span style="line-height: 1.5em;">tutorial is designed to be  roughly equivalent to the first <a href="https://www.kaggle.com/c/titanic-gettingStarted/details/getting-started-with-excel">excel lesson</a> </span><span style="line-height: 1.5em;">available</span><span style="line-height: 1.5em;"> on the Kaggle website. It should be useful both for people who want to learn SAS, but also for those who want to use SAS to enter the Kaggle competition. It explains how to use the SAS University Edition to do the following:</span></p>
<ul>
<li>Reading a CSV file into SAS using PROC IMPORT.</li>
<li>Calculating the proportion of men and women who survived using PROC FREQ.</li>
<li>Using IF&#8230;THEN..ELSE logic to modify a dataset.</li>
<li>Using the KEEP statement to only keep variables that you want in your dataset.</li>
<li>Outputting a dataset to a CSV file in preparation for submitting it to Kaggle</li>
</ul>
<p>Before you get started you will need to install a virtual machine and then the SAS university edition files. If you haven&#8217;t done this yet that you can follow the tutorial <a title="Download SAS university edition" href="http://www.sas.com/en_us/software/university-edition/download-software.html">here</a>.</p>
<p>Now launch the virtual machine and log onto the SAS University Edition.</p>
<p>Download the train.csv and test.csv file from the Kaggle <a href="https://www.kaggle.com/c/titanic-gettingStarted/details/getting-started-with-excel">website </a>and store them within the shared folder you setup when installed SAS unviersity edition, usually this will be : C:\SASUniversityEdition\myfolders\ .</p>
<p>Now we will import the train.csv file. To import the CSV file, we will use the PROC IMPORT procedure. Enter the following code into the code window as shown below.</p>
<pre>PROC IMPORT DBMS=csv OUT=train  replace
  DATAFILE="/folders/myfolders/train.csv";
  GETNAMES=YES;
RUN;</pre>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/import_csv1.png"><img class="alignnone  wp-image-379" alt="import_csv" src="http://statskom.com/wp-content/uploads/2014/09/import_csv1.png" width="982" height="222" /></a></p>
<ul>
<li>Here the DATAFILE option tells the procedure the name and location of the input file (note how this is relative to the shared folder you setup when you installed SAS University Edition).</li>
<li>The DBMS option tells the procedure the type of file it will be reading.</li>
<li>The OUT = option gives the name of the output file, as we are not specifying a LIBREF this dataset is created in the work library.</li>
<li>The REPLACE option tells the procedure that if the TRAIN file already exists in the work library then it should be overwritten.</li>
<li>The GETNAMES option tells the procedure that the first row of the CSV file contains the values that will be used to label the variables in the TRAIN dataset.</li>
</ul>
<p>Execute the code by pressing F3, or by clicking on the little running man.</p>
<p>The program will import the CSV file into SAS and convert it to a SAS dataset. The log file will show something similar to the below, confirming that the import was successful, it will also have information on the variables which have been created.</p>
<pre>891 rows created in WORK.TRAIN from /folders/myfolders/train.csv.

 NOTE: WORK.TRAIN data set was successfully created.
 NOTE: The data set WORK.TRAIN has 891 observations and 12 variables.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.17 seconds
       cpu time            0.18 seconds</pre>
<p>To check that the import has worked as expected, open the train dataset within the work library as shown below.</p>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/train_dset.png"><img class="alignnone  wp-image-382" alt="train_dset" src="http://statskom.com/wp-content/uploads/2014/09/train_dset.png" width="1138" height="255" /></a></p>
<p>Next we look to see  what effect  the gender of the passenger has on their chances of survival. To do this we use the PROC FREQ procedure as follows:</p>
<p>Enter the following into the code window, highlight it and execute the block of code either with the F3 key or by pressing the running man icon.</p>
<pre>PROC FREQ DATA =train ;
  TABLES survived*sex / NOROW NOPERCENT;
RUN;</pre>
<p>This code produces a two way frequency table. Note that we use the NOROW and NOPERCENT options to suppress the printing of some unwanted information. The output window should automatically be shown and should display something similar to the below.</p>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/gender_freq.png"><img class="alignnone size-full wp-image-384" alt="gender_freq" src="http://statskom.com/wp-content/uploads/2014/09/gender_freq.png" width="389" height="307" /></a></p>
<p>&nbsp;</p>
<p>This table tells us lots of useful information.</p>
<ul>
<li>The bottom right number tells us the total number of passengers in the dataset (891)</li>
<li>We can also see the number of females (314) and the number of males (577).</li>
<li>The number of people who survived (342) and the number that did not (549)</li>
<li>Most interestingly perhaps we can see the percentages of men and women who survived.</li>
</ul>
<p>We notice that 74.2 % of women on board survived, but only 18.89% of men. It seams  reasonable therefore that we might first attempt to work out which passengers from the training set survived, by guessing that all females survived and all males did not. To make a submission to Kaggle, you need to import the test.csv file, modify the dataset, output it back to a CSV file and then upload it to Kaggle, the process for doing this is explained below.</p>
<p>The process for importing the test.csv file is the same as the process for importing the train.csv file explained above with the exception that the file name is changed. Try to write and submit this code yourself, or scroll down to see how it should look.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<pre>PROC IMPORT DBMS=csv OUT=test replace
  DATAFILE="/folders/myfolders/test.csv";
  GETNAMES=YES;
RUN;</pre>
<p>Next we want to use conditional programming logic to assign values to a variable SURVIVED according to the gender of the passenger. To do this we use IF&#8230;THEN&#8230;ELSE logic as shown in the code below to create a dataset called gender_submit</p>
<pre>DATA gender_submit(KEEP=survived passengerid );
  SET test;
  IF sex = "female" THEN survived = 1;
  ELSE survived = 0;
 RUN;</pre>
<p>Survival in this dataset is indicated when the SURVIVED variable takes a value 1. In this example we use IF&#8230;THEN&#8230; ELSE logic to set the value of the SURVIVED variable to 1 if the sex variable = &#8220;female&#8221; and to set the value of the SURVIVED variable to otherwise. When making a submission for this challenge, your CSV file can only contain the variables SURVIVED and PASSENGERID. the KEEP statement in the first line, ensure that the output dataset only contains the variables you are interested in. To confirm this has worked as expected, open the dataset gender_submit from the work library, it should look similar to the following;</p>
<p>&nbsp;</p>
<p><a href="http://statskom.com/wp-content/uploads/2014/09/gender_submit.png"><img class="alignnone size-full wp-image-397" alt="gender_submit" src="http://statskom.com/wp-content/uploads/2014/09/gender_submit.png" width="1523" height="338" /></a></p>
<p><span style="line-height: 1.5em;">Finally you need to convert the dataset gender_submit into a CSV. This is done with the PROC EXPORT procedure as shown below.</span></p>
<pre>PROC EXPORT DATA=gender_sub DBMS=csv
  OUTFILE= "/folders/myfolders/gender_sub.csv" REPLACE;
RUN;</pre>
<p>Notice how the OUTFILE option tells the procedure where to write out the CSV file. Your shared folder should now contain the CSV file. Upload this to Kaggle and make your first submission.</p>
<p>The next tutorial will explain how to use graphics to explore your data further.</p>
<p>The post <a rel="nofollow" href="http://statskom.com/kaggle-getting-started-with-sas-university-edition/">Kaggle &#8211; Getting started with SAS university edition</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/kaggle-getting-started-with-sas-university-edition/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kaggle &#8211; Titanic: Machine Learning from Disaster</title>
		<link>http://statskom.com/kaggle/</link>
		<comments>http://statskom.com/kaggle/#comments</comments>
		<pubDate>Tue, 23 Sep 2014 13:21:47 +0000</pubDate>
		<dc:creator><![CDATA[Andrew N]]></dc:creator>
				<category><![CDATA[Kaggle]]></category>
		<category><![CDATA[SAS learning edition]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[PROC IMPORT]]></category>
		<category><![CDATA[SAS university edition]]></category>
		<category><![CDATA[Titanic: Machine Learning from Disaster]]></category>

		<guid isPermaLink="false">http://statskom.com/?p=391</guid>
		<description><![CDATA[<p>Kaggle is a platform for analytics and data science. It presents a series of competitions which are free to enter and often offer cash prizes. The competitions provide a great way to learn about programming data analysis and machine learning.&#8230; </p><p>The post <a rel="nofollow" href="http://statskom.com/kaggle/">Kaggle &#8211; Titanic: Machine Learning from Disaster</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="https://www.kaggle.com/c/titanic-gettingStarted">Kaggle </a>is a platform for analytics and data science. It presents a series of competitions which are free to enter and often offer cash prizes. The competitions provide a great way to learn about programming data analysis and machine learning.</p>
<p>One of its most popular competitions involves using a dataset of subject characteristics to predict which passengers survived the sinking of the Titanics. Kaggle provides a series of tutorials explaining how to get started on this problem using Excel, Python or R, however there is no tutorial on how to get started with SAS.</p>
<p>SAS recently released SAS University Edition. It is a free version of SAS designed for those interested in learning to work with the SAS language. It includes Base SAS, SAS Stat, SAS Access, SAS IML and SAS Studio. It can be downloaded from the SAS website <a href="http://www.sas.com/en_us/software/university-edition.html">here</a>.</p>
<p>We&#8217;ve decided to take advantage of the release of SAS University Edition to provide a series of introductory tutorials which explain how to use SAS to enter the Kaggle &#8211; Titanic: Machine Learning from Disaster competition. The tutorials are aimed at those people who are new to the SAS language and are interested in learning more. They will be posted here over the next few days.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="http://statskom.com/kaggle/">Kaggle &#8211; Titanic: Machine Learning from Disaster</a> appeared first on <a rel="nofollow" href="http://statskom.com">Statskom</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://statskom.com/kaggle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
