Statistics and R

Below, you will find download info, tutorials, readings and links to other useful websites – but first: an analogy that I found helpful in my teaching, for instance when students forget to load a package after installing it, forget to check data sets for typos etc. before carrying out analyses, …

R_kitchen_analogy_Sonja_Eisenbeiss

R(studio): Downloads and Info

Resource Sites, Blogs, and Groups

MOOCs, Youtube, Webinars

General Introduction, Cheat Sheets, and Overview

Useful Packages for Linguistics & Psychology

Working with Strings and Regular Expressions (RegEx)

Importing and Exploring Data

Saving and Exporting

  • In RStudio, you should create a project and save it when you leave RStudio (you will be asked whether you want to save). This will save your workspace and keep the objects that you have created (e.g. through data import). It will also save your history (your list of commands, which you can see in the “history” window). For more info about projects, see: https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects. This tutorial can be helpful: https://www.stat.ubc.ca/~jenny/STAT545A/block01_basicsWorkspaceWorkingDirProject.html#workspace-and-working-directory
  • In R, you can save the console your commands and the output as a text-file quite straightforwardly, using save file.
  • in RStudio, things are a bit more complicated:
    • You can copy and paste the console content to a text editor and save it there.
    • You can use the save option in your history window for your list of commands; and you can use “sink” for your outputs, e.g.
      > sink("sink-examp.txt")
      > 3+4
      > sink()

      This will create a text file with your output. For this example, this is a single line ([1] 7), but it could also be a list of lines or a table etc.

    • You can use Markdown to publish your data: https://rmarkdown.rstudio.com/.

Descriptive Statistics and Basic Test Statistics

(Mixed Effects) Regression Models

Vowel Analysis

Online R and Statistics textbooks

See also my Statistics Reading List

R vs. Python: Free books etc.
http://ucanalytics.com/blogs/r-vs-python-comparison-and-awsome-books-free-pdfs-to-learn-them/

 

You can also look at my Pinterest or teaching material list, but first – how about some cooking with R?

R_kitchen_analogy_Sonja_Eisenbeiss

Advertisements

One thought on “Statistics and R

  1. Pingback: Updates: Corpora, Statistics and R links | Experimental Linguistics in the Field

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.