-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from brymz/Statistics-1
add Statistics-1-R.md
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
layout: exercise | ||
title: Statistics 1 | ||
language: R | ||
--- | ||
|
||
This is a follow up to the [Graphing 1]({{ site.baseurl }}/exercises/graphing-1-R). | ||
|
||
We've graphed the relationship between adult size and new born size in | ||
mammals and now it's time to analyze the relationship statistically. | ||
|
||
1. Do a regression where x is log10(adult mass) and y is log10(newborn mass) | ||
2. Print the summary statistics for this regression | ||
3. Make a graph that shows both the data points and the regression line through | ||
those points. Label the axes. | ||
|
||
*Optional: If you want, plot a histogram of the residuals of the regression to | ||
make sure that they are roughly normally distributed (you can do this with just | ||
a single line of code)* |