<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" 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/" > <channel><title>Comments on: How to get from Stata to Pajek</title> <atom:link href="http://www.kai-arzheimer.com/blog/how-to-get-from-stata-to-pajek/feed/" rel="self" type="application/rss+xml" /><link>http://www.kai-arzheimer.com/blog/how-to-get-from-stata-to-pajek/</link> <description>A political science blog</description> <lastBuildDate>Sat, 21 Jan 2012 18:07:44 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Which of my students are most likely to gang up against me? &#124; Kai Arzheimer</title><link>http://www.kai-arzheimer.com/blog/how-to-get-from-stata-to-pajek/comment-page-1/#comment-374</link> <dc:creator>Which of my students are most likely to gang up against me? &#124; Kai Arzheimer</dc:creator> <pubDate>Wed, 19 May 2010 20:31:00 +0000</pubDate> <guid isPermaLink="false">http://www.kai-arzheimer.com/blog/?p=362#comment-374</guid> <description>[...] Getting  a data matrix from Stata into Pajek is not necessarily a fun exercise, so I decided to give the networkx module for Python a go, which is simply superb. Networkx has data types for representing social networks, so you can read in a rectangular data matrix (again as CSV),  construct the network in Python and export the whole lot to Pajek with a few lines of code: [...]</description> <content:encoded><![CDATA[<p>[...] Getting  a data matrix from Stata into Pajek is not necessarily a fun exercise, so I decided to give the networkx module for Python a go, which is simply superb. Networkx has data types for representing social networks, so you can read in a rectangular data matrix (again as CSV),  construct the network in Python and export the whole lot to Pajek with a few lines of code: [...]</p> ]]></content:encoded> </item> <item><title>By: kai</title><link>http://www.kai-arzheimer.com/blog/how-to-get-from-stata-to-pajek/comment-page-1/#comment-232</link> <dc:creator>kai</dc:creator> <pubDate>Mon, 11 Jan 2010 20:47:23 +0000</pubDate> <guid isPermaLink="false">http://www.kai-arzheimer.com/blog/?p=362#comment-232</guid> <description>Thanks for your comment Gabriel - I wasn&#039;t aware of the end-of-line problem. Your code is very neat and useful but seems to assume that the data are already in a &quot;long&quot; format (one record per dyad). My code is really just a hack wrapped around reshape, which saves me the trouble of doing this in Perl. For the benefit of other readers, here is a link to Gabriel&#039;s code on ssc: &lt;a href=&quot;http://ideas.repec.org/c/boc/bocode/s457075.html&quot; target=&quot;_blank&quot;&gt;http://ideas.repec.org/c/boc/bocode/s457075.html&lt;/a&gt; And here is the link to the spiced-up version on his blog (the link in the original comment points back to this page): &lt;a href=&quot;http://codeandculture.wordpress.com/2009/12/10/stata2pajek-w-vertice-colors/&quot; target=&quot;_blank&quot;&gt;http://codeandculture.wordpress.com/2009/12/10/st...&lt;/a&gt; </description> <content:encoded><![CDATA[<p>Thanks for your comment Gabriel &#8211; I wasn&#039;t aware of the end-of-line problem. Your code is very neat and useful but seems to assume that the data are already in a &quot;long&quot; format (one record per dyad). My code is really just a hack wrapped around reshape, which saves me the trouble of doing this in Perl.</p><p>For the benefit of other readers, here is a link to Gabriel&#039;s code on ssc:<br /> <a href="http://ideas.repec.org/c/boc/bocode/s457075.html" target="_blank">http://ideas.repec.org/c/boc/bocode/s457075.html</a></p><p>And here is the link to the spiced-up version on his blog (the link in the original comment points back to this page): <a href="http://codeandculture.wordpress.com/2009/12/10/stata2pajek-w-vertice-colors/" target="_blank">http://codeandculture.wordpress.com/2009/12/10/st&#8230;</a></p> ]]></content:encoded> </item> <item><title>By: gabrielrossman</title><link>http://www.kai-arzheimer.com/blog/how-to-get-from-stata-to-pajek/comment-page-1/#comment-231</link> <dc:creator>gabrielrossman</dc:creator> <pubDate>Mon, 11 Jan 2010 00:22:59 +0000</pubDate> <guid isPermaLink="false">http://www.kai-arzheimer.com/blog/?p=362#comment-231</guid> <description>your code uses the logical end-of-line character &quot;_n&quot;. since Pajek insists on Windows formatted text files, this is fine on Stata for Windows, but on Stata for Mac/Unix you need to use the Stata command &quot;filefilter&quot; to force the file to have Windows EOL characters. also, i have a similar ado file at ssc called &quot;stata2pajek&quot; there&#039;s also a &lt;a href=&quot;&quot; target=&quot;_blank&quot;&gt;more flexible version&lt;/a&gt; on my blog that lets you merge on vertice level attributes, like colors </description> <content:encoded><![CDATA[<p>your code uses the logical end-of-line character &quot;_n&quot;. since Pajek insists on Windows formatted text files, this is fine on Stata for Windows, but on Stata for Mac/Unix you need to use the Stata command &quot;filefilter&quot; to force the file to have Windows EOL characters.</p><p>also, i have a similar ado file at ssc called &quot;stata2pajek&quot;</p><p>there&#039;s also a <a href="" target="_blank">more flexible version</a> on my blog that lets you merge on vertice level attributes, like colors</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 530/568 objects using disk: basic

Served from: www.kai-arzheimer.com @ 2012-02-04 15:32:30 -->
