class: center, middle, inverse, title-slide # Research Methods in Linguistics ## Getting started ### Joseph V. Casillas, PhD ### Rutgers UniversitySpring 2019Last update: 2020-05-30 --- class: title-slide-section-grey, middle, center # .white[What is Data Science?] --- background-image: url("./assets/img/data_science1.png") background-size: contain --- background-image: url("./assets/img/data_science2.png") background-size: contain --- background-image: url("./assets/img/data_science3.png") background-size: contain --- background-image: url("./assets/img/datascience_workflow1.png") background-size: contain -- .center[.big[**This process should be version controlled!**]] --- background-image: url("./assets/img/datascience_workflow2.png"), url(./assets/img/workflow_10.png) background-size: 600px, 700px background-position: 15% 90%, 95% 40% -- .center[.big[**This project should be version controlled!**]] --- class: title-slide-section-grey, middle # .white[So what is version control?] -- background-image: url("./assets/img/final_doc.png") background-size: 525px background-position: 100% 50% --- background-image: url("./assets/img/datascience_workflow3.png") background-size: 600px background-position: 10% 50% # Don't forget the stats... -- .pull-right[ ```r library(tidyverse) ggplot(mtcars, aes(x = disp, y = mpg)) + geom_point() + * geom_smooth(method = 'lm') ``` <img src="index_files/figure-html/unnamed-chunk-2-1.png" width="504" /> ] --- background-image: url("./assets/img/datascience_workflow4.png") background-size: 500px background-position: 90% 50% # Literate programming .pull-left[ - This means we write code in a way that clearly documents what we did. - Instead of writing code with the purpose of telling the computer what to do, we write code that tells other humans what we told the computer to do and *why*. - Importantly, we don't separate our code from the report/essay/manuscript we are writing. Everyting is together, in a single document. ] --- class: center, middle # .black[In this class you will learn to...] -- ### .big[.RUred[manage version controlled research projects]] in a way that facilitates collaboration and honesty -- ### get and .big[.blue[tidy]] data -- ### transform and .big[.RUred[visualize]] your data -- ### fit statistical .big[.blue[models]] to your data and test hypotheses -- ### .big[.black[communicate]] your results using .big[.RUred[literate programming]] --- class: center, middle ## This is .big[**reproducible research**] --- class: title-slide-section-red, middle background-image: url(https://media.giphy.com/media/3o7aTwT5vjBVfsYEj6/giphy.gif) background-size: 500px background-position: 90% 50% # What you'll need... ### Programs and packages --- layout: true .left-column[ ### .black[Programs we will use] - .RUgrey[Slack] - .RUgrey[R] - .RUgrey[RStudio] - .RUgrey[GitHub account] ] --- .right-column[ ### **Slack** - Slack is a communication platform we'll use to discuss specific topics outside of class. - It also serves as a resource for students to ask questions and exchange information relevant to the course. - You will receive an email with an invitation link to join the course Slack ([www.ru-span420.slack.com](http://www.ru-datasci4ling.slack.com)) - For personal matters (only) you can email the professor. - Need help? [Instructions](http://www.jvcasillas.com/ru_teaching/ru_spanish_589/589_01_s2018/sources/tuts/slack_setup/index.html) ] --- background-image: url(./assets/img/slack.png) background-size: 650px background-position: 80% 80% .right-column[ ### **Slack app** - Get class notifications 24/7, everywhere you go 🤓 - There is a downloadable app so that you don't have to use the web interface - [Mobile](https://itunes.apple.com/us/app/slack/id618783545?mt=8) - [Desktop](https://itunes.apple.com/us/app/slack/id803453959?l=es&mt=12) ] --- .right-column[ ### **R** - R is the statistical programming language we will learn about in this class. - You can download R here: https://cran.r-project.org - Need help? [Instructions](http://www.jvcasillas.com/ru_teaching/ru_spanish_589/589_01_s2018/sources/tuts/r_install/index.html) ] --- .right-column[ ### **RStudio** - We will interface with R using RStudio, a fully feautred IDE. - RStudio is available to download here: https://www.rstudio.com/products/rstudio/download/#download - Need help? [Instructions](http://www.jvcasillas.com/ru_teaching/ru_spanish_589/589_01_s2018/sources/tuts/rstudio_install/index.html) ] --- .right-column[ ### **R Packages we will use** #### Obligatory - .blue[tidyverse]: Install and load tidy verse packages - .blue[knitr]: Dynamic report generation - .blue[rmarkdown]: Dynamic documents - .blue[papaja]: Reproducible APA manuscripts in RMarkdown - .blue[xaringan]: HTML presentations in RMarkdown - .blue[here]: Reproducible way to set working directory - .blue[devtools]: Install packages from GitHub You can download a package in r using the following command: ```r install.packages("packageName") ``` ] --- .right-column[ ### **R Packages we will use** #### Helpful - .blue[lingStuff]: Tools for linguistics related research - .blue[patchwork]: Combine ggplots - .blue[broom]: Stat models to tidy dataframe - .blue[learnr]: Interactive tutorials ] --- .right-column[ ### **R Packages we will use** #### Misc./fun - .blue[blogdown]: Create webpages using RMarkdown - .blue[ggridges]: Ridge plots - .blue[slidify]: HTML presentations ] --- .right-column[ ### **GitHub** - Github is a Web-based Git version control repository hosting service. - It is mostly used for computer code (like Dropbox for nerds). - We will use GitHub for project management and sharing reproducible reports. - Need help? [Instructions](http://www.jvcasillas.com/ru_teaching/ru_spanish_589/589_01_s2018/sources/tuts/github_setup/index.html) ] --- background-image: url(./assets/img/github.png) background-size: 650px background-position: 80% 80% .right-column[ ### **GitHub Desktop** - This can make interacting with Git much easier - You can download the app here: https://desktop.github.com ] --- layout:false class: title-slide-final, middle background-image: url(https://github.com/jvcasillas/ru_xaringan/raw/master/img/logo/ru_shield.png) background-size: 55px background-position: 9% 15% # Getting help ## If you have problems setting up any of the aforementioned ## software ask for help in the slack channel ### You can find some very basic tutorials related to ### R, RStudio, RMarkdown, GitHub, and Slack [here][here] [here]: http://www.jvcasillas.com/ru_teaching/ru_spanish_589/589_01_s2018/sources/tuts/index.html