Difference between revisions of "Software tutorial"

From Statistics for Engineering
Jump to navigation Jump to search
m
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
This tutorial will expand as we progress in the course.
The tutorial below is intended to be a self-directed learning experience for the R statistical language. (Another highly-recommended tutorial is [https://www.datacamp.com/courses/free-introduction-to-r available here])


# [[Software tutorial/About the course software | About the course software]]
# [[Software tutorial/About the course software | About the course software]]
Line 16: Line 16:
# [[Software tutorial/Programming in R: loops and flow control|Programming in R: loops and flow control]]
# [[Software tutorial/Programming in R: loops and flow control|Programming in R: loops and flow control]]
# [[Software tutorial/Vectors and matrices|Vectors and matrices]]
# [[Software tutorial/Vectors and matrices|Vectors and matrices]]
<!-- # Extracting information from a linear model in R
# [[Software tutorial/Building a least squares model in R|Building a least squares model in R]]
# Testing a linear model in R
# [[Software tutorial/Extracting information from a linear model in R|Extracting information from a linear model in R]]
# Transformation of data in a linear model
# [[Software tutorial/Testing a linear model in R|Testing a linear model in R]]
# Investigating outliers, discrepancies and other influential points
# [[Software tutorial/Transformation of data in a linear model|Transformation of data in a linear model]]
# Linear models with multiple X-variables (MLR)
# [[Software tutorial/Investigating outliers, discrepancies and other influential points|Investigating outliers, discrepancies and other influential points]]
# Linear models with integer variables -->
# [[Software tutorial/Linear models with multiple X-variables (MLR)|Linear models with multiple X-variables (MLR)]]
 
# [[Software tutorial/Linear models with integer variables|Linear models with integer variables]]


<!--  
<!--  
# [[Software tutorial/Loops|<tt>for</tt> loops and <tt>while</tt> loops]] (required for [[Tutorial_1_-_2010|tutorial 1]])
# [[Software tutorial/Loops|<tt>for</tt> loops and <tt>while</tt> loops]] (required for [[Tutorial_1_-_2010|tutorial 1]])
# [[Software tutorial/Scripts and functions|Scripts and functions]] (useful for [[Tutorial_2_-_2010|tutorial 2]])
# [[Software tutorial/Scripts and functions|Scripts and functions]] (useful for [[Tutorial_2_-_2010|tutorial 2]])
# [[Software tutorial/Vectors and arrays|Vectors and arrays]] (used for [[Tutorial_3_-_2010|tutorial 3]])
# [[Software_tutorial/Matrix_operations|Matrix operations]] (used for [[Tutorial_4_-_2010|tutorial 4]])
# [[Software_tutorial/Functions as objects|Functions as objects]] (used for [[Tutorial_5_-_2010|tutorial 5]] to find the zero of a function)
# [[Software_tutorial/Functions as objects|Functions as objects]] (used for [[Tutorial_5_-_2010|tutorial 5]] to find the zero of a function)
# [[Software_tutorial/Creating and saving plots|Creating and saving plots]] : important for all remaining assignments, and the take-home exam.
# [[Software_tutorial/Creating and saving plots|Creating and saving plots]] : important for all remaining assignments, and the take-home exam.
Line 35: Line 33:
# [[Software_tutorial/Loading data in MATLAB or Python| Loading data in MATLAB or Python]] from Excel, CSV and XML files -->
# [[Software_tutorial/Loading data in MATLAB or Python| Loading data in MATLAB or Python]] from Excel, CSV and XML files -->


* Want tutorials on other topics: please [mailto:kevin.dunn@mcmaster.ca email me]  
* Want tutorials on other topics: please [mailto:kgdunn@gmail.com email me]  
* A note about the videos in this tutorial: they are from [http://www.youtube.com/playlist?list=PLjTlxb-wKvXPqyY3FZDO8GqIaWuEDy-Od Rodger Peng's YouTube] channel on R Videos. He is running a MOOC on [https://class.coursera.org/compdata-002 Computing for Data Analysis] which started on 2 January, and is currently running.
<!-- * A note about the videos in this tutorial: they are from [http://www.youtube.com/playlist?list=PLjTlxb-wKvXPqyY3FZDO8GqIaWuEDy-Od Roger Peng's YouTube] channel on R Videos. He is running a MOOC on [https://class.coursera.org/compdata-002 Computing for Data Analysis] which started on 2 January, and has recently finished (February 2012).
-->
 
== R-related resources ==
 
Not every aspect about R can be covered with our tutorial (above).  Here are some additional resources.
 
* [https://en.wikipedia.org/wiki/R_(programming_language) Wikipedia page about R]
* [http://www.statmethods.net/index.html Another good tutorial, Quick-R]: follow the links on the left-hand side
* [http://www.twotorials.com/ The two-minute tutorials] on many R-related aspects
 
 
<!--
* Tutorial on removing white space around figures
* Add tutorial on drawing lines (cf the "line" vs "lines" function)
* Add tutorial on font sizes for plots, axis labels, and category labels (bar plot).  See univariate/code/histogram-children-by-gender.R
* Adding formula to labels: main=(expression(""*mu*"=0"))
* Add tutorial from: https://servera/knol/index.php/R_tips
 
yahoo2 <- yahoo[ yahoo$date >= as.Date('2008-01-01'), ]
plot(x=yahoo2$date, y=yahoo2$close,  main='YHOO stock close', xlab='date', ylab='close ($)')
plot.ts function
 




<!-- == Need some more help? ==


Not every aspect about R can be covered with our tutorial (above).  Here are some additional resources.
 
== Need some more help? ==


{| class="wikitable"
{| class="wikitable"

Latest revision as of 12:06, 12 August 2018