<?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/tags/sample</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 05:29:06 GMT</pubDate>
<item>
<title>(SAS) Selecting a Random Sample of Observations - webonomic</title>
<link>http://snipplr.com/view/63355/selecting-a-random-sample-of-observations/</link>
<description><![CDATA[ <p>You can use the POINT option of the SET statement to efficiently select a random sample of observations from a SAS data set. In addiiton to any statistical reasons for drawing a random sample, the technique is also useful to create test data from a large file. The program shown here efficiently samples a large data set.
It reads only the observations that have been selected using the POINT option.
You assign a variable that is the desired sample size. The example here selects a 10% sample. You can also assign a fixed value (e.g., 100).
The DO loop is iterated for each observation
The uniform function is compared to the percent of observations still to be selected
If the observation is selected, it is read and output and the number needed is decremented by 1
Regardless the number of observations left is reduced by 1
The STOP statement is very important as without it, the DATA step will enter an infinite loop.
This technique works by modifying the threshold as observations are read and selected. Every observation has the same probability of being selected so the technique is statistically valid (If you are a statistician, you probably know this. If not, the analogy of drawing straws is the logic behind this.)</p> ]]></description>
<pubDate>Thu, 16 Feb 2012 02:08:13 GMT</pubDate>
<guid>http://snipplr.com/view/63355/selecting-a-random-sample-of-observations/</guid>
</item>
<item>
<title>(SQL) Sintaxis básica/habitual SQL para consulta tipo DELETE - alberomo</title>
<link>http://snipplr.com/view/58685/sintaxis-bsicahabitual-sql-para-consulta-tipo-delete/</link>
<description><![CDATA[ <p>Sintáxis y clausulas más habituales para consulas SQL con cláusula DELETE que elimina uno o varios registros de la tabla que se especifica.</p> ]]></description>
<pubDate>Thu, 15 Sep 2011 00:58:28 GMT</pubDate>
<guid>http://snipplr.com/view/58685/sintaxis-bsicahabitual-sql-para-consulta-tipo-delete/</guid>
</item>
<item>
<title>(SQL) Sintaxis básica/habitual SQL para consulta tipo UPDATE - alberomo</title>
<link>http://snipplr.com/view/58684/sintaxis-bsicahabitual-sql-para-consulta-tipo-update/</link>
<description><![CDATA[ <p>Sintáxis y clausulas más habituales para consulas SQL con cláusula UPDATE que actualiza/modifica uno o varios registros de la tabla que se especifica.</p> ]]></description>
<pubDate>Thu, 15 Sep 2011 00:54:46 GMT</pubDate>
<guid>http://snipplr.com/view/58684/sintaxis-bsicahabitual-sql-para-consulta-tipo-update/</guid>
</item>
<item>
<title>(SQL) Sintaxis básica/habitual SQL para consulta tipo INSERT INTO - alberomo</title>
<link>http://snipplr.com/view/58682/sintaxis-bsicahabitual-sql-para-consulta-tipo-insert-into/</link>
<description><![CDATA[ <p>Sintáxis y clausulas más habituales para consulas SQL con cláusula INSERT INTO que añade un nuevo registro a la tabla que se especifica.</p> ]]></description>
<pubDate>Thu, 15 Sep 2011 00:41:05 GMT</pubDate>
<guid>http://snipplr.com/view/58682/sintaxis-bsicahabitual-sql-para-consulta-tipo-insert-into/</guid>
</item>
<item>
<title>(SQL) Sintaxis básica/habitual SQL para consulta tipo SELECT - alberomo</title>
<link>http://snipplr.com/view/58658/sintaxis-bsicahabitual-sql-para-consulta-tipo-select/</link>
<description><![CDATA[ <p>Sintáxis y clausulas más habituales para consulas SQL con cláusula SELECT que generen una nueva tabla con el resultado de la consulta.
Su sintáxis genérica es SELECT [campos] FROM [tablas] WHERE [criterio]</p> ]]></description>
<pubDate>Wed, 14 Sep 2011 02:29:24 GMT</pubDate>
<guid>http://snipplr.com/view/58658/sintaxis-bsicahabitual-sql-para-consulta-tipo-select/</guid>
</item>
<item>
<title>(Other) routes.rb - lexpresso</title>
<link>http://snipplr.com/view/54887/routesrb/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 05 Jun 2011 06:21:50 GMT</pubDate>
<guid>http://snipplr.com/view/54887/routesrb/</guid>
</item>
<item>
<title>(PHP) helloworld.php - mac2000</title>
<link>http://snipplr.com/view/52470/helloworldphp/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 22 Apr 2011 16:45:44 GMT</pubDate>
<guid>http://snipplr.com/view/52470/helloworldphp/</guid>
</item>
<item>
<title>(HTML) Sample HTML - koorb</title>
<link>http://snipplr.com/view/44329/sample-html/</link>
<description><![CDATA[ <p>Use as a basis for developing base CSS styles</p> ]]></description>
<pubDate>Thu, 18 Nov 2010 04:37:09 GMT</pubDate>
<guid>http://snipplr.com/view/44329/sample-html/</guid>
</item>
<item>
<title>(HTML) sample - dangerdiabolick</title>
<link>http://snipplr.com/view/34827/sample/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 May 2010 00:49:26 GMT</pubDate>
<guid>http://snipplr.com/view/34827/sample/</guid>
</item>
<item>
<title>(Python) python\'s random - magicrebirth</title>
<link>http://snipplr.com/view/29455/pythons-random/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 09 Mar 2010 00:55:38 GMT</pubDate>
<guid>http://snipplr.com/view/29455/pythons-random/</guid>
</item>
<item>
<title>(jQuery) Simple jQuery plugin layout + how 'this' works - 1man</title>
<link>http://snipplr.com/view/26382/simple-jquery-plugin-layout--how-this-works/</link>
<description><![CDATA[ <p>Simple plugin to demonstrate how the 'this' keyword is used. Plugin also allows chaining via the 'return'</p> ]]></description>
<pubDate>Wed, 13 Jan 2010 08:31:58 GMT</pubDate>
<guid>http://snipplr.com/view/26382/simple-jquery-plugin-layout--how-this-works/</guid>
</item>
<item>
<title>(PHP) DirectAdmin API sample script - shaunjanssens</title>
<link>http://snipplr.com/view/22597/directadmin-api-sample-script/</link>
<description><![CDATA[ <p>Do not use this php file exactly as it is. 
It's only to demonstrate the basics of the api.
You *must* do form checking to ensure safe values are passed.
Also, it's a really bad and very insecure practice to put a form like this publicly on your website for anyone to use.
If you do, you'll end up with a server full users you did not create (this script creates accounts without any involvment with an admin: bad)</p> ]]></description>
<pubDate>Thu, 05 Nov 2009 21:30:45 GMT</pubDate>
<guid>http://snipplr.com/view/22597/directadmin-api-sample-script/</guid>
</item>
<item>
<title>(HTML) Fixed Table Header Sample HTML - jsatt</title>
<link>http://snipplr.com/view/20317/fixed-table-header-sample-html/</link>
<description><![CDATA[ <p>This is a sample HTML layout to show best layout when using [Scrollable Table with Frozen Headers Sample](http://snipplr.com/view/20316/fixed-table-header/)

***
[Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported](http://creativecommons.org/licenses/by-nc-sa/3.0/)</p> ]]></description>
<pubDate>Sun, 27 Sep 2009 21:15:37 GMT</pubDate>
<guid>http://snipplr.com/view/20317/fixed-table-header-sample-html/</guid>
</item>
<item>
<title>(C++) Major Alpha 1.0 Stable - irm</title>
<link>http://snipplr.com/view/12850/major-alpha-10-stable/</link>
<description><![CDATA[ <p>Programa destinado para exibição do maior número dentro de um conjunto introduzido pelo utilizador.</p> ]]></description>
<pubDate>Fri, 06 Mar 2009 13:10:33 GMT</pubDate>
<guid>http://snipplr.com/view/12850/major-alpha-10-stable/</guid>
</item>
<item>
<title>(XHTML) CSS Test Page - Jdub7</title>
<link>http://snipplr.com/view/12564/css-test-page/</link>
<description><![CDATA[ <p>Use this to test your CSS markup.</p> ]]></description>
<pubDate>Wed, 25 Feb 2009 07:17:24 GMT</pubDate>
<guid>http://snipplr.com/view/12564/css-test-page/</guid>
</item>
<item>
<title>(PHP) CI sample models / controlers structure - antoniomax</title>
<link>http://snipplr.com/view/9951/ci-sample-models--controlers-structure/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 21 Nov 2008 02:41:09 GMT</pubDate>
<guid>http://snipplr.com/view/9951/ci-sample-models--controlers-structure/</guid>
</item>
<item>
<title>(C++) boost.python sample code (Exposing Classes) - tkf</title>
<link>http://snipplr.com/view/6447/boostpython-sample-code-exposing-classes/</link>
<description><![CDATA[ <p>Ref:
1. http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/exposing.html
-- code from here
2. http://d.hatena.ne.jp/niitsuma/20080108
-- コンパイルの方法</p> ]]></description>
<pubDate>Sat, 24 May 2008 16:04:50 GMT</pubDate>
<guid>http://snipplr.com/view/6447/boostpython-sample-code-exposing-classes/</guid>
</item>
<item>
<title>(Smarty) some Smart Code - udayrayala</title>
<link>http://snipplr.com/view/5166/some-smart-code/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Feb 2008 23:41:12 GMT</pubDate>
<guid>http://snipplr.com/view/5166/some-smart-code/</guid>
</item>
<item>
<title>(ASP) Sample ASP Code - udayrayala</title>
<link>http://snipplr.com/view/5160/sample-asp-code/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Feb 2008 05:30:46 GMT</pubDate>
<guid>http://snipplr.com/view/5160/sample-asp-code/</guid>
</item>
<item>
<title>(C#) Sample C# code new - udayrayala</title>
<link>http://snipplr.com/view/5159/sample-c-code-new/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Feb 2008 05:10:14 GMT</pubDate>
<guid>http://snipplr.com/view/5159/sample-c-code-new/</guid>
</item>
</channel>
</rss>