I am attempting to generate a cross-classified IRT simulation with a binary person-level indicator. I attempted to use "cutpoint" but finding that coupled with my statement on the between level for individuals leads to an error of, "Unrestricted x-variables for analysis with TYPE=CROSSCLASSIFIED must be a variable on only one level". In my code below I only have it specified on one between-level. I greatly appreciate any thoughts on restructuring the code. montecarlo: names are u x; cutpoints=x(0); nobservations = 6480; nreps = 1; CSIZES = 36[180(1)]; ncsizes = 1; generate=u(1); categorical=u; ANALYSIS: TYPE = cross random; estimator=bayes; proc=2; model population: %within% %between level2a% x@1; f BY u@1; f@1; u@0; f on x*.5;
%between level2b% u@1; [u$1*0]; model: %within% %between level2a% f BY u@1; f@1; u@0; f on x*.5;
Hello! I have one question about the cut points. In example 12.1, the syntax defines the cutpoints = x2(1) and explains that ¡°the variable x2 is cut at the value of one which is one standard deviation above the mean because the mean and variance used for data generation are zero and one. This implies that after the cut x2 is a 0/1 binary variable where 16 percent of the population have the value of 1.¡±
Because the variance is 1, the value 1 is one standard deviation. But I don¡¯t understand the last sentence. (1) How can a 0/1 binary variable have a mean of 0? And how do you know 16 percent of the population have the value of 1?
(2) what about the specification cutpoints = x(1) w(0); in example 12.6 ? How do we comprehend the w(0)?