introduction-simulations-in-r
Introduction to Simulations in R
Science Score: 65.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
✓Institutional organization owner
Organization lmu-osc has institutional domain (www.osc.uni-muenchen.de) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Repository
Introduction to Simulations in R
Basic Info
- Host: GitHub
- Owner: lmu-osc
- License: cc-by-sa-4.0
- Language: R
- Default Branch: main
- Homepage: https://lmu-osc.github.io/Introduction-Simulations-in-R/
- Size: 3.93 MB
Statistics
- Stars: 18
- Watchers: 2
- Forks: 76
- Open Issues: 6
- Releases: 0
Metadata Files
README.md
Introduction to Simulations in R
About this work
This tutorial was created by Malika Ihle based on materials from Joel Pick, Hadley Wickham, and Kevin Hallgren, with contributions from James Smith.
It is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Prerequisites
- Have R and RStudio installed. If you don't, follow these instructions.
- Know some R basics (e.g. how to select a value in a data frame, how to create a vector). If you don't, visit the following tutorial: https://lmu-osc.github.io/introduction-to-R/.
Prior to the session: optional preparation to get familiarised with the subject
1) Watch this 30-minute introduction to credible research, which contextualises the importance of simulations for reliable research.
Self-paced workshop
How it works
The self-paced tutorial (pages linked below) will alternate presentation of concepts and simple exercises for you to try to apply them in R. Each time you see written YOUR TURN, switch to your local copy of the exercise script (you can choose between a file with or without the solutions depending on e.g. your level of familiarity with R), review the examples if needed, complete the exercise, and check out the proposed answer (which often contains additional tips). Come back to the online tutorial and after finishing one page, you can navigate to the next page linked at the bottom to continue. The exercise script contains code for all the exercises and code that generates the plots that appear in the online tutorial, all in order of appearance in the tutorial.
It is necessary that you work through the sections of the tutorial in order. Please read the blurbs of each section below to get an overview of this workshop. Then click on the first page 'Download the material' and follow along by navigating to the next page linked at the bottom of each page! You can get back to this overview at any time by clicking on the title 'Introduction-Simulations-in-R' at the top of each page.
Tutorial
- Download the material – Get this tutorial onto your machine.
- Definition – What are simulations?
- Purpose – What can we use simulations for?
- Basic principles – What do we need to create a simulation?
- Random number generators – How to generate random numbers in R?
- Repeat – How to repeat the generation of random numbers multiple times?
- Setting the seed – How can you generate the same random numbers?
- Sample size
n– How many values should you generate within a simulation? - Number of repetitions
nrep– How many repeats of a simulation should you run? - DRY rule – How to write your own functions?
- Simulate to check alpha – Write your first simulation and check the rate of false-positive findings.
- Simulate to check power – Simulate data to perform a power analysis.
- Simulate to prepare a preregistration – Simulate data to test statistical analyses before preregistering them.
- General structure – What is the general structure of a simulation?
- Limitations – What are the limitations of simulations?
- Real-life example – What are real-life examples of simulations?
- Additional resources – What resources can help you write your own simulation?
Owner
- Name: LMU Open Science Center
- Login: lmu-osc
- Kind: organization
- Location: Germany
- Website: https://www.osc.uni-muenchen.de/index.html
- Repositories: 1
- Profile: https://github.com/lmu-osc
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Ihle"
given-names: "Malika"
orcid: "https://orcid.org/0000-0002-3242-5981"
affiliation:
- name: "LMU Open Science Center"
ror: "https://ror.org/029e6qe04"
title: "Introduction to Simulations in R"
version: 0.1.0
doi: "DOI_HERE_AFTER_GENERATED"
date-released: 2021-11-22
repository-code: "https://github.com/lmu-osc/Introduction-Simulations-in-R"
url: "https://lmu-osc.github.io/Introduction-Simulations-in-R"
preferred-citation:
authors:
- family-names: "Ihle"
given-names: "Malika"
orcid: "https://orcid.org/0000-0002-3242-5981"
title: "Introduction to Simulations in R"
year: 2021
doi: "DOI_HERE_AFTER_GENERATED"
publisher:
name: "LMU Open Science Center"
ror: "https://ror.org/029e6qe04"
repository-code: "https://github.com/lmu-osc/Introduction-Simulations-in-R"
url: "https://lmu-osc.github.io/Introduction-Simulations-in-R"
type: "book"
GitHub Events
Total
- Issues event: 8
- Watch event: 1
- Issue comment event: 14
- Push event: 15
- Pull request event: 8
- Fork event: 2
- Create event: 3
Last Year
- Issues event: 8
- Watch event: 1
- Issue comment event: 14
- Push event: 15
- Pull request event: 8
- Fork event: 2
- Create event: 3
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 5
- Total pull requests: 4
- Average time to close issues: about 1 month
- Average time to close pull requests: 3 days
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 0.8
- Average comments per pull request: 1.5
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 5
- Pull requests: 4
- Average time to close issues: about 1 month
- Average time to close pull requests: 3 days
- Issue authors: 2
- Pull request authors: 2
- Average comments per issue: 0.8
- Average comments per pull request: 1.5
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- NeuroShepherd (5)
- MalikaIhle (1)
Pull Request Authors
- NeuroShepherd (5)
- Gnotic (2)
- langejulian (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- quarto-dev/quarto-actions/publish v2 composite
- quarto-dev/quarto-actions/setup v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-renv v2 composite