I am sorry for the confusion.
Hope this time is clear:
There are 34 items in total in this test. the 34 items measures 3 content domains.
5 items measures domain 1: item1, item5, item10, item12, item28;
15 items measures domain 2: item2, item3, item4,..., item26;
14 items measure domain 3: item11, item13,..., item34;
I want to create one dataset for each domain. Each dataset should have binary item responses, item domain indicators (values should be the same for all indicator for the same domain) for checking purpose, and total score (sum of item response).
For example, for domain 1, the dataset should look like below. resp_1 to resp_28 are the item responses. cat1 to cat28 are domain indicator. domain1_tot is the sum of resp_1, resp_2, resp_10, resp_12, resp28.
create the same datasets for domain2 and domain3.
obs
resp_1
resp_5
resp_10
resp_12
resp_28
cat_1
cat_5
cat_10
cat_12
cat_28
domain1_tot
1
1
1
1
1
0
1
1
1
1
1
4
2
1
1
1
1
0
1
1
1
1
1
4
3
1
1
0
1
0
1
1
1
1
1
3
4
1
1
1
0
1
1
1
1
1
1
4
Thanks!
... View more