Skip to content

Commit 449d055

Browse files
committed
problems
1 parent 7887756 commit 449d055

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

problems.qmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,16 @@ We’re going to dive into the deep end and try to figure out what to do with re
130130
- You can examine the ‘fit’ of the model (with the big caveat that we don’t have much data).
131131

132132
The idea here is to get you thinking about this. There are approaches that have been developed for working through this decision but I think it is always fun to struggle a little with a problem before looking at the solution! [Note: There is not a ton of data here, so in my view that limits any certainty about the right answer to this question!]
133+
134+
### CDM & what makes an item
135+
Let’s examine what we get from a Q matrix using the `frac20` data (described [here](https://www.jstatsoft.org/article/view/v093i14)), a standard dataset used in the cognitive diagnostic modeling literature. Here we have math problems involving fractions which are hypothesized to require some combination of 8 specific skills. The linkage of the items and skills is contained in the ‘Q matrix’. Let’s use the code [here](https://github.com/ben-domingue/252/blob/main/ps7/cdm.R) to explore three ways of modeling the responses in that dataset!.
136+
137+
- Let’s first fit a lme4-style Rasch model `m1`. We can also fit a conventional Rasch model via mirt (`m2`). What do we get when we compare item parameters from such analyses?
138+
- Let’s now contrast these findings with an analysis wherein we think of the individual items as being potentially ‘exchangeable’ with any other item that loads on the same skills. I am now asserting that the only thing about items that matters is the skills they load on. This is the `m2` object. Conceptually, we can imagine having a bunch of different items that have the same skill loadings. From the perspective of this model, we would basically be observing different responses to common stimuli. Such reasoning is a common feature of psychological studies where, for example, psychologists will ask people to do [mental rotation tasks](https://rdrr.io/cran/diffIRT/man/rotation.html) wherein they are just varying the angle (there is no good definition of items here if angle is being varied continuously). Do you think this conceptualization of the items as interchangeable ‘tasks’ in this way is appropriate here? Do you have any empirical results to support/confirm your answer to the above?
139+
- Let’s now estimate a CDM (see `m3`). In particular, we’re going to use the DINA approach. This approach is discussed in the above paper, the core idea is captured below (see page 4):
140+
$$
141+
\Pr(\alpha^*_{lj})=\delta_{j0}+\delta_{j12...K^*_j} \Pi_{k-1}^{K^*_j} \alpha_{lk}
142+
$$
143+
This equation asserts that the probability of a correct responses is delta_j0 if you do NOT have ALL of the requisite skills (where the Q matrix tells us what these are for each item) and delta_j0+delta_j12…K if you do have ALL the requisite skills (the A in DINA is for AND; there is also a DINO model that make a different assertion about how skills are required for generating correct responses). Stop for a second: we now have IRT results and CDM results. How might we expect the results (at either the person- or item-level) to compare? How might you examine this? In the code I do some basic analyses of the output of estimating this model. Do these results behave as you may expect vis-a-vis the IRT results? Note that I am doing a few ad-hoc things. There are no standardized way of really approaching comparisons of CDM and IRT outputs. What I am doing makes sense to me but there may be other approaches!
144+
- The ‘fits’ of the 3 models (`m1 m2 m3`) are challenging to compare. I show how you can compare AICs in the code; according to those, which is optimal? How satisfied are you with this comparison? Could you come up with a plan that you think might yield more concrete insight about differences in prediction quality across these three approaches?
145+
- BONUS: Can you implement your plan for comparing the fit of the three models?

0 commit comments

Comments
 (0)