<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Sample Data on Home Runs Hit By Mark McGwire and Sammy Sosa...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="R.css">
</head><body>

<table width="100%" summary="page for homerun"><tr><td>homerun</td><td align="right">R Documentation</td></tr></table>

<h2>Sample Data on Home Runs Hit By Mark McGwire and Sammy Sosa in 1998.</h2>

<h3>Description</h3>


<p>Game-by-game information for the 1998 season for Mark McGwire and Sammy Sosa. Data are a subset of the dataset provided in Simonoff (1998).
</p>


<h3>Usage</h3>

<pre>data(homerun)</pre>


<h3>Format</h3>


<p>A data frame containing 5 variables (&quot;gameno&quot;, &quot;month&quot;, &quot;homeruns&quot;, &quot;playerstatus&quot;, &quot;player&quot;) and 326 observations.  
</p>

<dl>
<dt><code>gameno</code></dt><dd><p>an integer variable denoting the game number</p>
</dd>
<dt><code>month</code></dt><dd><p>a factor variable taking with levels &quot;March&quot; through &quot;September&quot; denoting the month of the game</p>
</dd>
<dt><code>homeruns</code></dt><dd><p>an integer vector denoting the number of homeruns hit in that game for that player</p>
</dd>
<dt><code>playerstatus</code></dt><dd><p>an integer vector equal to &quot;0&quot; if the player played in the game, and &quot;1&quot; if they did not.</p>
</dd>
<dt><code>player</code></dt><dd><p>an  integer vector equal to &quot;0&quot; (McGwire) or &quot;1&quot; (Sosa)</p>
</dd>
</dl>



<h3>Source</h3>

<p><a href="http://www.amstat.org">http://www.amstat.org</a></p>


<h3>References</h3>

<p>Simonoff, Jeffrey S. 1998. &ldquo;Move Over, Roger Maris: Breaking Baseball's Most Famous Record.&rdquo; <EM>Journal of Statistics Education</EM> 6(3). Data used are a subset of the data in the article.</p>


</body></html>
