-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove replicate term * Use simulation repetition terminology * Clarify use of nrep * Tweak use of terminology * Use "repetitions" in chapter overview in index.qmd and README.md as well * Shorten "simulation repetitions" to "repetitions" in most context but especially when used in combination with "number of" Reword "simulation repetitions of N(0,1)" to "repetitions simulating N(0,1)" * Add "replications" once as a common alternative term --------- Co-authored-by: Julian Lange <32773007+langejulian@users.noreply.github.com>
- Loading branch information
1 parent
07e2dfe
commit 3134c25
Showing
11 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Basic principles | ||
|
||
Basically, a simulation consist in: | ||
Basically, a simulation consists of: | ||
**1) Generating `n` random numbers from a known distribution.** | ||
**2) Repeating this `nrep` times.** | ||
|
||
Once you know how to do this, the questions we will explore are: | ||
**1) What sample size `n` should we use within a simulation?** | ||
**2) How many simulations `nrep` should we run?** | ||
**2) How many simulation repetitions `nrep` should we run?** | ||
|
||
*** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# General structure of a simulation | ||
|
||
1. **Define** what type of data and variables need to be simulated, i.e. their **distribution**, their class (e.g. factor vs. numerical values), **sample sizes** (within a dataset and number of replicates), what will need to vary (e.g. the strength of relationship), etc. | ||
1. **Define** what type of data and variables need to be simulated, i.e. their **distribution**, their class (e.g. factor vs. numerical values), **sample sizes** (within a dataset and number of repetitions), what will need to vary (e.g. the strength of relationship), etc. | ||
|
||
2. **Generate data**, random data or data including an effect (e.g. an imposed correlation between two variables). | ||
|
||
3. **Run the statistical test** you think is appropriate and record the relevant statistic (e.g. *p*-value). | ||
|
||
4. **Replicate** step 2 and 3 to get the distribution of the statistic of interest. | ||
4. **Repeat** step 2 and 3 to get the distribution of the statistic of interest. | ||
|
||
5. Try out different parameter sets (**explore the parameter space** for which results are similar). | ||
|
||
6. **Analyse and interpret the combined results of many simulations** within each set of parameters. For instance, check that you only get a significant result in 5% of the simulations (if `alpha = 0.05`) when you simulated no effect and that you get a significant result in 80% of the simulations (if you targeted a power of 80%) when you simulated an effect. | ||
6. **Analyse and interpret the combined results of many simulation repetitions** within each set of parameters. For instance, check that you only get a significant result in 5% of the repetitions (if `alpha = 0.05`) when you simulated no effect and that you get a significant result in 80% of the repetitions (if you targeted a power of 80%) when you simulated an effect. | ||
|
||
*** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters