<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/sas/tags/number</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 06:24:44 GMT</pubDate>
<item>
<title>(SAS) Random Sample Selection - sarathannapareddy</title>
<link>http://snipplr.com/view/34215/random-sample-selection/</link>
<description><![CDATA[ <p>Last week my manager asked me to randomly pick 10%observations from a large data set and then create a listing so that the Data management programmers can QC the data. I want to share some thoughts here … how easy and simple to do random sampling. 
Approach 1:

Data step Approach: In this approach, the observations are shuffled using the RANUNI function which assigns a random number to each observation.</p> ]]></description>
<pubDate>Tue, 11 May 2010 10:40:28 GMT</pubDate>
<guid>http://snipplr.com/view/34215/random-sample-selection/</guid>
</item>
<item>
<title>(SAS) How to calculate number of years and number of days between 2 dates; - sarathannapareddy</title>
<link>http://snipplr.com/view/18283/how-to-calculate-number-of-years-and-number-of-days-between-2-dates/</link>
<description><![CDATA[ <p>Exploring the yrdif and datdif functions in SAS as well as INTCK function:
There are several ways to calculate the number of years between two dates and out of all the methods, YRDIF function results the most accurate value.

Syntax:

ageinyrs = YRDIF(birthdate, enddate, 'act/act');
ag_indays = DATDIF(birthdate, enddate, 'act/act');

Read more at: http://studysas.blogspot.com/2009/03/how-to-calculate-number-of-years-and.html</p> ]]></description>
<pubDate>Thu, 13 Aug 2009 17:15:50 GMT</pubDate>
<guid>http://snipplr.com/view/18283/how-to-calculate-number-of-years-and-number-of-days-between-2-dates/</guid>
</item>
</channel>
</rss>