NSC-R Tidy Tuesday

Improve your R skills in entertaining, inspiring and supportive sessions moderated by your own colleagues.

Wim Bernasco https://nscr.nl/en/medewerker/prof-dr-wim-bernasco/
05-09-2023

The NSC-R Tidy Tuesday workshop sessions are inspired by the Tidy Tuesday initiative, which is aimed at providing a safe and supportive forum for individuals to practice their data processing and visualization skills in R while working with real-world data.

In this workshop (May 9, 2023, 13:00-14:00), Wim Bernasco tried to model song popularity using a dataset of tracks on Spotify.

Even if you have no interest in popular music at all, you may find the materials presented in the workshop instructive for getting ideas on how to do regression analysis in R.

The workshop did not delve into statistics, but rather show how to get linear regression and logistic regression models running in R and generate useful and reproducible output. The focus was be on ordinary least squares and (quite briefly) logistic regression, but the techniques can easily be generalized to other regression models.

Wim Bernasco is a senior researcher at NSCR and a member of the NSC-R Workshops team. His research focuses on the geography of crime.

Materials

Downloading files from GitHub

To download files from GitHub you can:

Clone the repository to create a local copy in your computer. To clone a repository, follow the instructions here.

Alternatively, you can:

  1. Download all files compressed in a ZIP. To do this, go to the repository and click on the green code button, then select download ZIP. Unzip the downloaded file into a folder on your local computer.
  2. Download a specific file. To do this, select the desired file in the repository and click on the raw button. Then right click on the new page and select save as. Don’t forget to put the proper extension in the save name, like .R or .Rmd.

Citation

For attribution, please cite this work as

Bernasco (2023, May 9). NSC-R Workshops: NSC-R Tidy Tuesday. Retrieved from https://nscrweb.netlify.app/posts/2023-05-09-nsc-r-tidy-tuesday/

BibTeX citation

@misc{bernasco2023nsc-r,
  author = {Bernasco, Wim},
  title = {NSC-R Workshops: NSC-R Tidy Tuesday},
  url = {https://nscrweb.netlify.app/posts/2023-05-09-nsc-r-tidy-tuesday/},
  year = {2023}
}