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

P-Values, Replication, Reproducibility, and Open Science

Currently, there is an ongoing debate about the way in which we can avoid abuse of statistics and ensure that research is as unbiased as possible. You can find some discussion in a recent articles and more references and links on another pages of the Experimentalfieldlinguistics-Blog:

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, Visualizing, 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/.

Power Analysis and Determining Sample Size

Tools for Poweranalysis:

Readings

*recommended for beginners: Brysbaert (2019, 2020) and Sullivan (2012)

Descriptive Statistics and Basic Test Statistics

(Mixed Effects) Regression Models

Rasch Analysis

“Classic” Texts:

  • Fischer, G., & Molenaar, I. (eds.) (1995), Rasch models: Foundations, recent developments, and applications. Springer.
  • Rasch, G. (1961). On general laws and the meaning of measurement in Psychology. University of California Press.
  • Rost, J. (1996). Logistic mixture models. In: W. van der Linden & Hambleton (eds.), Handbook of modern item response theory. Springer.

Further Readings

Rasch Analysis in R

Rasch Analysis using Winsteps

Vowel Analysis

Random Forests

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

 

One thought on “Statistics and R

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

Leave a comment

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