Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
**Hello everyone!** Welcome to our OSF repo(sitory) where I will upload all materials (data files, scripts, html files containing code + explanations, resources etc.) and provide you with further information on the introduction to statistics course for the Methods in Language Sciences Summer School. **Course Overview**\ In this course, you will learn how to wrangle data with R, how to visualise data and how to perform an analysis on linguistic data with R, RStudio, and the tidyverse. I will introduce you to the linear model framework, including mixed models. We will be covering topics such as interpreting model outputs, interpreting interactions, fitting linear (mixed) regression models. We will also briefly discuss convergence issues. Importantly, you will learn how to do data analysis in a way that is open and reproducible. **Preparation/Requirements**\ In this course we will be using R and RStudio (in both the theoretical and practical sessions) which you will need to have installed prior to the course. You will also have to download the materials and slides folders. You need to have four things ready by the start of the course: 1. Materials folder 2. Slides folder with qmd and html files 3. R and Rstudio 4. R packages we use during the course I assume that you already have installed R and RStudio for the course Introduction to R. If you for any reason have not done so, have a look below. **Materials and slides folder**\ Download the entire 'materials' and 'slides' folders. Make sure that you have these folders unzipped and make sure that you know where they are on your computer. **R packages installation**\ Open up RStudio and copy and paste the following lines of code into the "console", which is the big window that should display a blinking ">". You need to be connected to the internet while doing this, as the code will instruct R to download the packages from the "Comprehensive R Archive Network" (CRAN). If there's a prompt that asks you to select a server, select any server, ideally one that's reasonably close to you. install.packages('tidyverse') install.packages('lme4') install.packages('lattice') install.packages('broom') install.packages('tidytext') install.packages('afex') If you're new to installing R packages, don't be frightened by a ton of different very obscure messages occurring in red font. The one package we desperately need for the entire course is the tidyverse package. So it would be good to check that the installation has worked, which you can do by copy and pasting the following into the R console: library(tidyverse) How do you know that it worked? It should look something like this [screenshot](https://appliedstatisticsforlinguists.org/tidyverse_ok.png) (details like the package version numbers may vary, that's OK). **R installation**\ If you haven't installed R yet, you can do so [here](https://cran.rstudio.com/). If you're new to R, the following videos on [how to install R on a Mac](https://www.youtube.com/watch?v=Icawuhf0Yqo) and [how to install R on PC](https://www.youtube.com/watch?v=mfGFv-iB724) may be useful to you. **RStudio installation**\ To install the free version of RStudio, go [here](https://www.rstudio.com/products/rstudio/download/). To get help with installing R and RStudio and getting started we also recommend [this video](https://www.youtube.com/watch?v=lVKMsaWju8w). **Windows users**\ If you're new to R/RStudio and a Windows user, you may have to install RTools separately from R. It is likely that we won't need this. You can download RTools here: https://cran.r-project.org/bin/windows/Rtools/ **Loading in datasets**\ My experience of tutoring/teaching/taking part in stats workshops has shown me that one can lose an incredible amount of time trying to get everybody in the room to load in the data. Everything will be much smoother if you try loading in a few of the files in the "data" folder. We don't want to loose too much time during the course on this, so getting used to this process will be very helpful. If you are new to R and have newer loaded in any data, please [watch the wonderful Bodo in this video](https://appliedstatisticsforlinguists.org/data_loading.mp4). **Readings & Further study**\ Other than following the above instructions, there is no need to prepare with readings etc. At the end of the workshop, I will give you reading recommendations and ideas for further study.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.