<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2597753531174867053</id><updated>2012-02-10T18:57:20.817-08:00</updated><title type='text'>E. C. Hedberg, Sociologist and Methodologist</title><subtitle type='html'>What I'm up to, etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.echedberg.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2597753531174867053/posts/default'/><link rel='alternate' type='text/html' href='http://www.echedberg.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Eric Hedberg</name><uri>https://profiles.google.com/111564006147266518661</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-k2QYFz0XT4U/AAAAAAAAAAI/AAAAAAAAAHE/AfWKjv69G4s/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2597753531174867053.post-3647529747700531783</id><published>2011-09-29T10:19:00.000-07:00</published><updated>2011-09-29T10:47:47.314-07:00</updated><title type='text'>New blog format, new Stata program!</title><content type='html'>Hello everyone. &amp;nbsp;Since Apple is moving away from its iDisk infrastructure, iWeb will soon no longer work. &amp;nbsp;Therefore, I have switched my blog to Blogspot. The layout is less snazzy, but at least it will work.&lt;br /&gt;&lt;br /&gt;In this post, I would like to introduce my new program, gsum, for Stata. &amp;nbsp;What it does is take a variable where each category is a range of a&amp;nbsp;continuous&amp;nbsp;variable and interpolates medians or other percentiles. It's pretty slick in that it can read the labels off your variable and use them for the range values. &amp;nbsp;Personally, I think the best thing about this program is that it can create a new variable with the midpoints, which I know will make my life easier.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-Q8UPTArA9f4/ToSnhbrv4FI/AAAAAAAAAC8/h1X_AA1HHKY/s1600/Viewer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="625" src="http://2.bp.blogspot.com/-Q8UPTArA9f4/ToSnhbrv4FI/AAAAAAAAAC8/h1X_AA1HHKY/s640/Viewer.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;Here's the summary from the help file:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;gsum calculates summary statistics for an ordinal variable where each category&lt;br /&gt;&amp;nbsp; &amp;nbsp; represents a range of a conceptually continuous variable. gsum provides the weighted&lt;br /&gt;&amp;nbsp; &amp;nbsp; N, the mean, the standard deviation, and quantiles 0.25, 0.50 (the median), and 0.75&lt;br /&gt;&amp;nbsp; &amp;nbsp; (you can specify any set of quantiles you want). &amp;nbsp;Each quantile is available as both&lt;br /&gt;&amp;nbsp; &amp;nbsp; the midpoint of the category in which the quantile falls, or as a linear&lt;br /&gt;&amp;nbsp; &amp;nbsp; interpolation of that quantile based on methods presented by Blalock (1979).&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; gsum can also produce a value table (which can also be saved) listing each category,&lt;br /&gt;&amp;nbsp; &amp;nbsp; the range, the midpoint of that range, the number of cases, the weight of each case,&lt;br /&gt;&amp;nbsp; &amp;nbsp; and the cumulative distribution function (CDF).&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; For an extra tool, gsum can also create a new variable that contains the midpoints.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; gsum accepts any type of [weight] and is byable.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; For example, you may have a variable age_cat where 1 represents 18-24 years of age,&lt;br /&gt;&amp;nbsp; &amp;nbsp; 2 represents 25-44 years of age, and 3 represents 45-100 years of age. &amp;nbsp;You can use&lt;br /&gt;&amp;nbsp; &amp;nbsp; gsum to calculate summary statistics such as the mean, median, and standard&lt;br /&gt;&amp;nbsp; &amp;nbsp; deviation.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here is how the output looks:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-0WVdz5IDFJg/ToSmkPUKWjI/AAAAAAAAAC4/FmFcu0TkX9I/s1600/Results.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="322" src="http://1.bp.blogspot.com/-0WVdz5IDFJg/ToSmkPUKWjI/AAAAAAAAAC4/FmFcu0TkX9I/s640/Results.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;or if you want more detail:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-iFabMmIu2ro/ToSoVVvtJyI/AAAAAAAAADA/merW1-4ZwXg/s1600/Resultsii.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="550" src="http://2.bp.blogspot.com/-iFabMmIu2ro/ToSoVVvtJyI/AAAAAAAAADA/merW1-4ZwXg/s640/Resultsii.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;to install it, simply type in Stata "ssc install gsum"&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Courier; font-size: 9pt;"&gt;Blalock, H.M. 1979. Social Statistics. 2nd Ed. McGraw-Hill: New York&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Courier; font-size: 9pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Courier; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2597753531174867053-3647529747700531783?l=www.echedberg.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.echedberg.com/feeds/3647529747700531783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.echedberg.com/2011/09/new-blog-format-new-stata-program.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2597753531174867053/posts/default/3647529747700531783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2597753531174867053/posts/default/3647529747700531783'/><link rel='alternate' type='text/html' href='http://www.echedberg.com/2011/09/new-blog-format-new-stata-program.html' title='New blog format, new Stata program!'/><author><name>Eric Hedberg</name><uri>https://profiles.google.com/111564006147266518661</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-k2QYFz0XT4U/AAAAAAAAAAI/AAAAAAAAAHE/AfWKjv69G4s/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-Q8UPTArA9f4/ToSnhbrv4FI/AAAAAAAAAC8/h1X_AA1HHKY/s72-c/Viewer.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
