if (FALSE) {
# Example with the verbal data
data(verbal)
LassoData(Data=verbal[,1:24], group=verbal[,26])
# Example with SimDichoDif to generate uniform DIF
It <- 15 # number of items
ItDIFa <- NULL
ItDIFb <- c(1,3)
NR <- 100 # number of responses for group 1 (reference)
NF <- 100 # number of responses for group 2 (focal)
a <- rep(1,It)
b <- rnorm(It,1,.5)
Gb <- rep(2,2) # Group value for U-DIF
Ga <- 0 # Group value for NU-DIF: need to be fix to 0 for U-DIF
Out1 <- SimDichoDif(It,ItDIFa,ItDIFb,NR,NF,a,b,Ga,Gb)
Data<-Out1$data[,1:15]
Member<-Out1$data[,16]
LassoData(Data=Data, group=Member)
}
Run the code above in your browser using DataLab