Corrected second bug in scenarios 18 and 20, n=50

main
Corentin Choisy 10 months ago
parent 100ce17ead
commit 7e90340c8c

File diff suppressed because it is too large Load Diff

@ -1123,6 +1123,7 @@ forvalues k=1/1000 {
if (`nummoda'==2) { if (`nummoda'==2) {
qui recode item`j' (`checker'=0) (`checker2'=1) qui recode item`j' (`checker'=0) (`checker2'=1)
} }
di `nummoda'
if (`nummoda'==3) { if (`nummoda'==3) {
if (`checker'!=0) { if (`checker'!=0) {
qui recode item`j' (`checker'=0) (`checker2'=1) (`checker3'=2) qui recode item`j' (`checker'=0) (`checker2'=1) (`checker3'=2)
@ -1200,7 +1201,7 @@ forvalues i=1/`nbitems' {
if (`checker2'==3) { if (`checker2'==3) {
local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)(3.item`i'<-THETA@3 tt)" local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)(3.item`i'<-THETA@3 tt)"
} }
else if (`checker2'==3) { else if (`checker2'==2) {
local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)" local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)"
} }
else { else {
@ -1580,6 +1581,7 @@ putexcel A1=matrix(outmat), colnames
************************************************** Scenario 20: J = 7 items / M = 4 modalities / DIF size 0.3 x3 ************************************************** Scenario 20: J = 7 items / M = 4 modalities / DIF size 0.3 x3
local N = "50" local N = "50"
foreach Nnn in `N' { foreach Nnn in `N' {
@ -1731,6 +1733,7 @@ forvalues k=1/1000 {
if (`nummoda'==2) { if (`nummoda'==2) {
qui recode item`j' (`checker'=0) (`checker2'=1) qui recode item`j' (`checker'=0) (`checker2'=1)
} }
di `nummoda'
if (`nummoda'==3) { if (`nummoda'==3) {
if (`checker'!=0) { if (`checker'!=0) {
qui recode item`j' (`checker'=0) (`checker2'=1) (`checker3'=2) qui recode item`j' (`checker'=0) (`checker2'=1) (`checker3'=2)
@ -1808,7 +1811,7 @@ forvalues i=1/`nbitems' {
if (`checker2'==3) { if (`checker2'==3) {
local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)(3.item`i'<-THETA@3 tt)" local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)(3.item`i'<-THETA@3 tt)"
} }
else if (`checker2'==3) { else if (`checker2'==2) {
local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)" local mod = "`mod'"+"(1.item`i'<-THETA@1 tt)(2.item`i'<-THETA@2 tt)"
} }
else { else {

Loading…
Cancel
Save