stop('Error 198: The GR option defines a probability. The values defined by this option must be greater (or equal) to 0 and lesser (or equal) to 1.')
}
if (is.null(CLEAR)&is.null(STORE)){
stop('Error 198: You must use at least one of these two options: clear and/or store.')
}
if (!is.null(DIM)){
nbdim<-length(DIM)
if (nbdim>2&is.null(COVM)){
stop('Error 198: You can simulate data with one or two dimensions, and you have indicated more dimensions in the DIM option. Please correct it.')
}
if (!is.null(COVM)){
nbrowcovm<-nrow(COVM)
if (nbdim!=nbrowcovm){
stop('Error 198: DIM and COVM dimension mismatch. Please correct.')
}
}
nbitems<-sum(DIM)
if (!is.null(DIF)){
nbdiff<-length(DIF)
tmp<-DIF[1]
if (tmp=='gauss'|tmp=='uniform'){
typediff<-tmp
}
elseif (nbdiff!=nbitems){
stop('Error 198: "You have indicated a number of difficulty parameters (DIF option) different of the number of items to simulate (DIM option). Please correct these options.')