You are on page 1of 3

‫و‬Psychotree ً‫ ف‬DIF‫ و‬fitting ‫ وإٌجاد القٌم وال‬PCM‫شجرة راش‬

psychtool

‫ الذي ٌتم تحلٌل‬، )Strobl et al. 2015 'raschtree'( ‫ٌتم تقدٌم نماذج شجرة الراش فً القصٌرة‬ 
‫ وٌتم تﮐرار الشﮐل التوﺿٌحً الذي‬.'psychotree' = ‫ الحزمة‬، ‫ فً المقالة‬SPISA ‫تحلٌل بٌانات‬
.‫ٌوظف البٌانات المؤﮐدة أدناه‬
'S3 'raschtree ‫من فئة‬.'ً‫قٌمة كائن ٌرث من 'طرف نموذج‬ 
‫الداتا المقدمة مصطنعة حسب سطر األوامر فً اآلر‬ 

 > o <- options(digits = 4)


 >
 > data("DIFSim", package = "psychotree")
fit Rasch tree model ‫مناسبة الداتا المصطنعة للنموذج‬ 

 > data("DIFSim", package = "psychotree")


 > rt <- raschtree(resp ~ age + gender + motivation, data = DIF
Sim)
 >
 > plot(rt)
‫رسم ٌوﺿح نموذج راش الشجري‬

:‫ إستخراج معلمات العنصر‬


 > coef(rt)
 resp2 resp3 resp4 resp5 resp6 resp7 resp8 resp9
 3 1.3280 3.6397 -0.1435 -0.7131 -1.650 -0.5698 -0.2858 -2.244
 4 0.6719 0.9678 0.8168 0.1960 -1.233 -1.0811 -0.1298 -1.477
 5 0.1706 2.3846 0.1706 -0.8672 -1.686 -1.0882 -0.3826 -1.818
 resp10 resp11 resp12 resp13 resp14 resp15 resp16
 3 -1.0064 -0.2858 -2.244 -1.479 -2.485e+00 -1.6504 1.5474
 4 0.1304 -1.0073 -1.394 -1.233 5.318e-01 0.9678 1.2957
 5 0.2288 0.2879 -2.179 -1.559 7.940e-07 0.5989 0.3478
 resp17 resp18 resp19 resp20
 3 1.547 -5.698e-01 -1.006 -2.659e-07
 4 2.020 1.841e-05 -1.007 -1.946e-01
 5 1.275 -3.826e-01 -1.032 -7.586e-01

> itempar(rt)
resp1 resp2 resp3 resp4 resp5 resp6 resp7 resp8
3 0.41354 1.7416 4.053 0.2700 -0.2995 -1.237 -0.1562 0.12779
4 0.05796 0.7298 1.026 0.8747 0.2539 -1.175 -1.0231 -0.07179
5 0.31447 0.4851 2.699 0.4851 -0.5527 -1.372 -0.7737 -0.06814
resp9 resp10 resp11 resp12 resp13 resp14 resp15 resp16
3 -1.831 -0.5928 0.1278 -1.831 -1.065 -2.0719 -1.2368 1.9610
4 -1.419 0.1883 -0.9493 -1.336 -1.175 0.5897 1.0258 1.3536
5 -1.504 0.5433 0.6024 -1.864 -1.245 0.3145 0.9134 0.6623
resp17 resp18 resp19 resp20
3 1.961 -0.15621 -0.5928 0.4135
4 2.078 0.05798 -0.9493 -0.1367
5 1.589 -0.06814 -0.7178 -0.4442

‫ إستكشاف ثبات المعلمات فً كل العقد المنفصلة‬


(inspect parameter stability tests in all splitting nodes)

 > library("strucchange")
 > sctest(rt, node = 1)#First node.
 age gender motivation
 statistic 43.1086 41.486403 82.0383
 p.value 0.1103 0.006221 0.9947
 > sctest(rt, node = 2)#second node.
 age gender motivation
 statistic 6.126e+01 0 86.252
 p.value 3.613e-04 NA 0.926
DIF ‫ بإستخدام األمر‬41‫ و‬3 ‫تسلٌك الﺿوء على العقد‬ 
)highlight items 3 and 14 with DIF) 

 > ix <- rep(1, 20)


 > ix[c(3, 14)] <- 2
 > plot(rt, ylines = 2.5, cex = c(0.4, 0.8)[ix], pch = c(19, 19
)[ix], col = gray(c(0.5, 0))[ix])

DIF ‫نموذج راش‬

You might also like