<?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/how-to-get-from-stata-to-pajek/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kai-arzheimer.com/how-to-get-from-stata-to-pajek/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-from-stata-to-pajek</link>
	<description>political science &#38; politics</description>
	<lastBuildDate>Thu, 26 Apr 2012 16:00:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</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/how-to-get-from-stata-to-pajek/#comment-51</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-51</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/how-to-get-from-stata-to-pajek/#comment-50</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-50</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; rel=&quot;nofollow&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; rel=&quot;nofollow&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" rel="nofollow">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" rel="nofollow"></a><a href="http://codeandculture.wordpress.com/2009/12/10/st" rel="nofollow">http://codeandculture.wordpress.com/2009/12/10/st</a>&#8230; </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabrielrossman</title>
		<link>http://www.kai-arzheimer.com/how-to-get-from-stata-to-pajek/#comment-49</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-49</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; rel=&quot;nofollow&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.<br />
also, i have a similar ado file at ssc called &quot;stata2pajek&quot;<br />
there&#039;s also a <a href="" target="_blank" rel="nofollow">more flexible version</a> on my blog that lets you merge on vertice level attributes, like colors </p>
]]></content:encoded>
	</item>
</channel>
</rss>

