Update title in README; rebuild
This commit is contained in:
parent
d411821974
commit
f029510984
Binary file not shown.
@ -4,9 +4,7 @@ measurements
|
|||||||
|
|
||||||
## MASS anorexia data
|
## MASS anorexia data
|
||||||
|
|
||||||
1. Analyze the original data:
|
Data preparation
|
||||||
- In R, see ?MASS::anorexia
|
|
||||||
- Data preparation
|
|
||||||
|
|
||||||
``` r
|
``` r
|
||||||
data(anorexia, package = "MASS")
|
data(anorexia, package = "MASS")
|
||||||
@ -20,11 +18,13 @@ lattice::xyplot(Postwt ~ Prewt, dat, groups = Treat,
|
|||||||
type = c("g", "r", "p"), auto.key = TRUE)
|
type = c("g", "r", "p"), auto.key = TRUE)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Estimate the average treatment effect (ATE) for FT relative to CBT.
|
1. Analyze the original data:
|
||||||
|
- In R, see ?MASS::anorexia
|
||||||
|
- Estimate the average treatment effect (ATE) for FT relative to
|
||||||
|
CBT.
|
||||||
- What is the 95% CI for the ATE?
|
- What is the 95% CI for the ATE?
|
||||||
- What are the pre- and post-weight means for the two groups?
|
- What are the pre- and post-weight means for the two groups?
|
||||||
- What are the baseline-adjusted means for the two groups?
|
- What are the baseline-adjusted means for the two groups?
|
||||||
|
|
||||||
2. Run a power simulation for a replication study:
|
2. Run a power simulation for a replication study:
|
||||||
- Draw plausible pre-weights.
|
- Draw plausible pre-weights.
|
||||||
- Specify the minimum relevant effect.
|
- Specify the minimum relevant effect.
|
||||||
@ -41,5 +41,3 @@ lattice::xyplot(Postwt ~ Prewt, dat, groups = Treat,
|
|||||||
- the R code, output, and plots (if any)
|
- the R code, output, and plots (if any)
|
||||||
|
|
||||||
Render the R or Rmd file to HTML.
|
Render the R or Rmd file to HTML.
|
||||||
|
|
||||||
### Reference
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -3,8 +3,8 @@ Power for mixed-effects models
|
|||||||
Last modified: 2026-01-09
|
Last modified: 2026-01-09
|
||||||
|
|
||||||
``` r
|
``` r
|
||||||
library(lattice)
|
library("lattice")
|
||||||
library(lme4)
|
library("lme4")
|
||||||
```
|
```
|
||||||
|
|
||||||
# Reanalysis
|
# Reanalysis
|
||||||
|
|||||||
@ -8,8 +8,8 @@ Exercises: Data simulation for crossed random-effects models
|
|||||||
“manually”
|
“manually”
|
||||||
|
|
||||||
``` r
|
``` r
|
||||||
library(lattice)
|
library("lattice")
|
||||||
library(lme4)
|
library("lme4")
|
||||||
|
|
||||||
#--------------- (1) Create data frame ----------------------------------------
|
#--------------- (1) Create data frame ----------------------------------------
|
||||||
datsim <- expand.grid(subject = factor(c("s1" , "s2" , "s3" )),
|
datsim <- expand.grid(subject = factor(c("s1" , "s2" , "s3" )),
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user