R Tip: Linear RegressionAnonymousOctober 05, 2016Linear Regression is a common statistical tool used to determine relationships between data This RTip is modified from: http://www.apsnet.org/edcenter/advanced/topics/EcologyAndEpidemiologyInR/DiseaseProgress/Pages/LinearRegression.aspx
For example, let’s look at the relationship between girth and height of black cherry trees First, look at the data
Next, run the linear model
And view the stats
The linear fit line has an intercept of 62.0313, an slope of 1.0544, and an R2 value of 0.2697
1 Comment
|
Spatial Ecology @ MSUClick on "Category" below to search for R code compiled by the Zarnetske Spatial & Community Ecology Lab and students in MSU's Spatial Ecology graduate course (FOR870/FW870) Category
All
Archive
October 2016
|