corrected rosali bug
This commit is contained in:
@ -767,11 +767,12 @@ if "`group'"!="" & "`nodif'"=="" { // PARTIE 1 = Slmt si option group & pas de "
|
||||
local nb_stepC = 0
|
||||
qui lrtest modeldifA modeldifB
|
||||
local diftestp=r(p)
|
||||
local lrt_passed=0
|
||||
if `diftestp'<0.05{ /*If pvalue(LRtest)<0.05 then step C*/
|
||||
di
|
||||
di as input "PROCESSING STEP C"
|
||||
di
|
||||
|
||||
local lrt_passed=1
|
||||
/*test DIF pour chaque item*/
|
||||
local boucle = 1
|
||||
local stop = 0
|
||||
@ -1135,11 +1136,18 @@ else if "`group'" == "" {
|
||||
di
|
||||
}
|
||||
|
||||
matrix dif_detect = J(1,`nbitems',.)
|
||||
matrix dif_detect = J(1,2*`nbitems'+1,.)
|
||||
local numdif=1
|
||||
matrix dif_detect[1,`nbitems'+`nbitems'+1]=`lrt_passed'
|
||||
forvalues j=1/`nbitems' {
|
||||
if dif_rc[`j',1] != . {
|
||||
matrix dif_detect[1,`numdif']=`j'
|
||||
if dif_rc[`j',2] == 0 {
|
||||
matrix dif_detect[1,`nbitems'+`numdif']=0
|
||||
}
|
||||
if dif_rc[`j',2] != 0 {
|
||||
matrix dif_detect[1,`nbitems'+`numdif']=1
|
||||
}
|
||||
local numdif = `numdif'+1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user