<?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>Anicca-vijja &#187; Anova</title>
	<atom:link href="http://www.anicca-vijja.de/tag/anova/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anicca-vijja.de</link>
	<description>Start anywhere</description>
	<lastBuildDate>Mon, 30 Jan 2012 13:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multiple imputation (ordinary ANOVA) with R</title>
		<link>http://www.anicca-vijja.de/2009/09/multiple-imputation-ordinary-anova-with-r/</link>
		<comments>http://www.anicca-vijja.de/2009/09/multiple-imputation-ordinary-anova-with-r/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 18:00:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Methodology]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Anova]]></category>
		<category><![CDATA[Multiple Imputation]]></category>

		<guid isPermaLink="false">http://www.anicca-vijja.de/?p=455</guid>
		<description><![CDATA[At first, if you are not familiar with R, you need to install R from CRAN and (under Win32) Tinn-R. Tinn-R enables to control R via script. If you use Linux, just install R via your distribution of choice and then there is an add-on for Emacs to control R (ESS). The next is to [...]]]></description>
			<content:encoded><![CDATA[<p>At first, if you are not familiar with R, you need to install R from <a href="http://cran.r-project.org/" target="_blank">CRAN </a>and (under Win32) <a href="http://www.sciviews.org/Tinn-R/" target="_blank">Tinn-R</a>. Tinn-R enables to control R via script. If you use Linux, just install R via your distribution of choice and then there is an add-on for <a href="http://www.gnu.org/software/emacs/" target="_blank">Emacs</a> to control R (<a href="http://ess.r-project.org/" target="_blank">ESS</a>). The next is to start R via Tinn-R or Emacs. Don&#8217;t forget to choose you &#8216;<a href="http://www.google.de/search?q=hotkeys+tinn-r&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;rls=org.mozilla:de:official&amp;client=firefox-a" target="_blank">hotkeys</a>&#8216; in Tinn-R (or any other editor of your choice to control R).</p>
<p>For multiple imputation, I choose the R-package &#8216;<a href="http://web.inter.nl.net/users/S.van.Buuren/mi/hmtl/mice.htm" target="_blank">mice</a>&#8216; from van Buuren et al. You have to install it manually. There are also other packages that deal with it, see:</p>
<pre>library.search("imputation")</pre>
<p>If you are not familiar with the R-style to formulate linear models, start with</p>
<pre>?lm
example(lm)</pre>
<p>or read the usual <a href="http://cran.r-project.org/manuals.html" target="_blank">intros and manuals</a> that are linked via CRAN (or the <a href="http://cran.r-project.org/other-docs.html" target="_blank">contributed documentations</a>) &#8211; otherwise search on the internet with your search machine of choice with the add-on &#8216;cran&#8217; like &#8216;mulitple imputation cran&#8217; or &#8216;missing data cran&#8217;, etc.</p>
<p>The folllowing are excerpts from the man-pages of &#8216;mice&#8217;-package commandos.</p>
<pre>?read.table       # import of data - see tutorials and intros to R
                  # of 'how to import data'
library(help=mice)# what is inside package 'mice'?
library(mice)     # load library for MI
data(nhanes)      # use data from 'mice'-package
str(nhanes)
nhanes            # show data
?mice             # produce Multivariate Imputation by Chained Equations
imp &lt;- mice(nhanes)
imp
str(imp)
?lm.mids          # Performs repeated linear regression
                  # on multiply imputed data set
lm.mids           # R-source code of 'lm.mids'
fit &lt;- lm.mids(bmi~hyp+chl,data=imp)
fit
summary(fit)
str(fit)
?pool             #
pool(fit)         # pool results
summary(pool(fit))# better output
pool              # R-source code of 'pool'</pre>
<p>That&#8217;s all. Multiple imputation (ordinary ANOVA) is quite easy to peform in R.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anicca-vijja.de/2009/09/multiple-imputation-ordinary-anova-with-r/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

