Skip to content

Commit e3a3897

Browse files
authored
Merge pull request #71 from zhanglj37/main
update difficulty simulatin webpage
2 parents e2b6f91 + 3dcd779 commit e3a3897

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

diffsim.qmd

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,15 @@ The current difficulty pool includes 145 datasets from IRW (as of 10-2025), cove
4141
</div>
4242

4343

44-
45-
46-
47-
Below is the figure showing how varied these distributions can be — some centered, some skewed, some even multimodal. This diversity helps us better understand how measurement behaves under realistic conditions.
48-
49-
50-
```{r, message = F}
44+
```{r, eval=FALSE}
5145
# load the difficulty pool from the package
52-
devtools::install_github("itemresponsewarehouse/Rpkg")
5346
data("diff_long", package = "irw")
5447
5548
# package for plot
5649
library(dplyr)
5750
library(ggplot2)
5851
library(ggridges)
59-
```
60-
6152
62-
```{r, fig.width=4, fig.height=7, fig.align='center'}
6353
diff_long_sd <- diff_long |>
6454
group_by(dataset) %>%
6555
mutate(SD = sd(difficulty, na.rm = TRUE)) %>%
@@ -79,11 +69,15 @@ ggplot(diff_long_sd, aes(x = difficulty, y = reorder(dataset, SD), fill = SD)) +
7969
)
8070
```
8171

82-
<!--div style="text-align: center;">
72+
73+
Below is the figure showing how varied these distributions can be — some centered, some skewed, some even multimodal. This diversity helps us better understand how measurement behaves under realistic conditions.
74+
75+
76+
<div style="text-align: center;">
8377
<img src="diffsim/ridge_irw.png" alt="Distribution of Item Difficulties" width="40%">
8478

8579
<p style="font-size: 0.9em; color: gray;"><strong>Note:</strong> The color intensity reflects the standard deviation of difficulties in each dataset, with darker shades signifying greater variability.</p>
86-
</div-->
80+
</div>
8781

8882

8983

@@ -108,7 +102,7 @@ The sample size requirement analysis demonstrates the strong influence of item d
108102

109103

110104
<div style="text-align: center;">
111-
<img src="/diffsim/scatter_sd_logminn.png" alt="Distribution of Item Difficulties" width="60%">
105+
<img src="/diffsim/scatter_sd_logminn.png" width="60%">
112106
</div>
113107

114108
## Reference

0 commit comments

Comments
 (0)