<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Duphenix.com</title>
	<atom:link href="http://duphenix.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://duphenix.com</link>
	<description>Matthew&#039;s Record</description>
	<lastBuildDate>Mon, 05 Dec 2011 05:04:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Psychology Wiki Entries</title>
		<link>http://duphenix.com/2011/07/first-psychology-wiki-entry/</link>
		<comments>http://duphenix.com/2011/07/first-psychology-wiki-entry/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 07:16:21 +0000</pubDate>
		<dc:creator>duphenix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://duphenix.com/?p=20</guid>
		<description><![CDATA[I just finished the bulk of my first psychology wiki entries. I&#8217;m using the wiki format to collect and organize journal article summaries for my own use. I think having the summaries in an easily searchable format will be helpful &#8230; <a href="http://duphenix.com/2011/07/first-psychology-wiki-entry/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just finished the bulk of my first psychology wiki entries.</p>
<p>I&#8217;m using the wiki format to collect and organize journal article summaries for my own use. I think having the summaries in an easily searchable format will be helpful in future research.</p>
<p>Here is the first one I ever uploaded. </p>
<p><a href="http://psych.duphenix.com/index.php?title=Judgement_Under_Uncertainty">Judgement Under Uncertainty: Heuristics and Biases, by Amos Tversky and Daniel Kahneman</a></p>
<p>The full list can be found at &#8220;<a href="http://psych.duphenix.com/index.php?title=Special:AllPages">All pages</a>&#8220;, along with some notes about using Latex and APA 6th Edition.</p>
<p>I&#8217;m still learning the WikiMedia interface, so I have the reference information for the article, but I haven&#8217;t gotten it formatted in the wiki yet. Also, if one of your articles is summarized and don&#8217;t want the summary available to the public, let me know and I will remove it from public view.</p>
]]></content:encoded>
			<wfw:commentRss>http://duphenix.com/2011/07/first-psychology-wiki-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Basic Regression in R</title>
		<link>http://duphenix.com/2011/06/a-basic-regression-in-r/</link>
		<comments>http://duphenix.com/2011/06/a-basic-regression-in-r/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 02:20:45 +0000</pubDate>
		<dc:creator>duphenix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://duphenix.com/?p=6</guid>
		<description><![CDATA[Here is a basic R program for doing a simple linear regression.  Below I&#8217;ll show some common modifications that one might want that aren&#8217;t intuitive to add. First, we import the data, in this case from a CSV (comma separated &#8230; <a href="http://duphenix.com/2011/06/a-basic-regression-in-r/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a basic R program for doing a simple linear regression.  Below I&#8217;ll show some common modifications that one might want that aren&#8217;t intuitive to add.</p>
<p>First, we import the data, in this case from a CSV (comma separated variable) file.</p>
<p><code>emp &lt;- read.table("/Vols/duphenix/Docs/self_emp/employ.csv", header=TRUE, sep=",")</code></p>
<p>I&#8217;ll explain each piece</p>
<ol>
<li><strong>emp</strong>, is just a container name, I&#8217;ll use it every time I want to refer to, or use the raw data</li>
<li><strong>&lt;-</strong>, assigns whatever follows it to the container name</li>
<li><strong>read.table()</strong>, is the function that actually pulls in the data from the disk or other location</li>
<li><strong>&#8220;/Vols/duphenix/Docs/self_emp/employ.csv&#8221;</strong>, is the path to the file or location containing the data.  On windows machines, this would begin with C:\ (or whatever drive letter you are using is) and then the file path.</li>
<li><strong>header=TRUE</strong>, this tells read.table that the first line in the csv file contains the variables names for each column.  The other option would be to use row.names to call a list containing the variable names, for now it is much easier to just use header=TRUE and have the variable names in the csv file.</li>
<li><strong>sep=&#8221;,&#8221;</strong>, lets read.table know that the separator between columns is a comma, &#8220;\t&#8221; would tell read.table that it was a tab delineated file (no matter what the file extension was).</li>
</ol>
<p>You can use,</p>
<p><code>print(emp)</code></p>
<p>to print the data in the <em>emp</em> container we just made with read.table.  You would use this to verify that the data was imported correctly.</p>
<p><code>summary(emp)</code></p>
<p>Will print summary statistics for the data, by default the mean, median, maximum, minimum and quintiles.  You can get individual summary statistics from other functions.</p>
<p><code>names(emp)</code></p>
<p>Will print all the variable names from the emp dataset, which can be useful when you need to use them later in the program.</p>
<p>Now that we have the data entered, and have a list of the variable names we can get to the actual regression.</p>
<p>The most basic linear regression in R is called by the <em>lm()</em> function, lm stands for Linear Model.</p>
<p><code>lm(emp$dependent_var ~ emp$independent_var_1 + emp$independent_var_2)</code></p>
<p>In this case emp is the dataset, the $ is the separator and dependent_var is the dependent variable (or explanatory variable, or regressor, etc.) .  The ~ tells the lm function that the independent variables (or observed variables, or regressands, etc.) follow.  The next two, emp$independent_var_1, and emp$independent_var_2, are the first two independent variables.  You could use as many as you wanted here, depending either on your experimental design, or theoretical background.</p>
<p>Some variations should be mentioned here.  If you needed to force the intercept to 0, for theoretical or logical reasons, you could rewrite the line as follows,</p>
<p><code>lm(emp$dependent_var ~ -1 + emp$independent_var_1 + emp$independent_var_2)</code></p>
<p>with the -1 forcing the intercept to zero.</p>
<p>You could also use the more flexible generalized linear model, or <em>glm()</em>.  By default this usually will give results identical to the <em>lm()</em> function, but you can specify a different family of distributions in it.  The following is an example of using the <em>glm()</em> function to get identical results to the <em>lm()</em> function.</p>
<p><code>glm(emp$dependent_var ~ -1 + emp$independent_var_1 + emp$independent_var_2, family = gaussian)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://duphenix.com/2011/06/a-basic-regression-in-r/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Welcome</title>
		<link>http://duphenix.com/2011/06/welcome/</link>
		<comments>http://duphenix.com/2011/06/welcome/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 22:21:04 +0000</pubDate>
		<dc:creator>duphenix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[welcome]]></category>

		<guid isPermaLink="false">http://duphenix.com/2011/06/welcome/</guid>
		<description><![CDATA[I&#8217;ve moved from drupal to WordPress as it matches my current usage pattern. I&#8217;ll repost all the content from my old site soon.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve moved from drupal to WordPress as it matches my current usage pattern. I&#8217;ll repost all the content from my old site soon. </p>
]]></content:encoded>
			<wfw:commentRss>http://duphenix.com/2011/06/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

