Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
palday and github-actions[bot] authored Nov 7, 2023
1 parent 204ee39 commit 3db3b70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions power_simulation.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The MixedModelsSim package provides a function `simdat_crossed` for simulating e

Let's see what that looks like in practice.
We'll look at a simple 2 x 2 design with 20 subjects and 20 items.
Our first factor `age` will vary betwen subjects and have the levels `old` and `young`.
Our first factor `age` will vary between subjects and have the levels `old` and `young`.
Our second factor `frequency` will vary between items and have the levels `low` and `high`.
Finally, we also need to specify a random number generator to use for seeding the data simulation.

Expand All @@ -115,7 +115,7 @@ Table(dat)

We have 400 rows -- 20 subjects x 20 items.
Similarly, the experimental factors are expanded out to be fully crossed.
Finally, we have a dependent variable `dv` initalized to be draws from the standard normal distribution $N(0,1)$.
Finally, we have a dependent variable `dv` initialized to be draws from the standard normal distribution $N(0,1)$.

:::{.callout-note title="Latin squares, partial crossing, and continuous covariates"}
`simdat_crossed` is designed to simulate a fully crossed factorial design.
Expand Down

0 comments on commit 3db3b70

Please sign in to comment.