Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sas 生命周期评价:当我改变项目陈述中所列项目的顺序时,为什么项目响应概率会改变?_Sas - Fatal编程技术网

Sas 生命周期评价:当我改变项目陈述中所列项目的顺序时,为什么项目响应概率会改变?

Sas 生命周期评价:当我改变项目陈述中所列项目的顺序时,为什么项目响应概率会改变?,sas,Sas,我不熟悉SAS中的潜在类分析,这可能是一个愚蠢的问题,但我无法理解当我切换item语句中包含的项目的顺序时,为什么我的项目响应概率会发生变化? 我的语法中的所有其他内容都保持不变,包括一个固定的种子数。这太令人沮丧了…谢谢 如果运行代码1,我会得到项目1的响应概率,比如:类别1(0.9961)、类别2(0.1156)、类别3(0.9401)、类别4(0.7769),而当运行代码2时,我会得到相同的项目:类别1(0.9513)、类别2(0.4307)、类别3(0.7870)、类别4(0.5731)

我不熟悉SAS中的潜在类分析,这可能是一个愚蠢的问题,但我无法理解当我切换item语句中包含的项目的顺序时,为什么我的项目响应概率会发生变化? 我的语法中的所有其他内容都保持不变,包括一个固定的种子数。这太令人沮丧了…谢谢

如果运行代码1,我会得到项目1的响应概率,比如:类别1(0.9961)、类别2(0.1156)、类别3(0.9401)、类别4(0.7769),而当运行代码2时,我会得到相同的项目:类别1(0.9513)、类别2(0.4307)、类别3(0.7870)、类别4(0.5731)。为什么订单很重要

SAS代码1


/*here is a normal order of items*/ 
items   item1 item2 item3 ... item23; /*from item1 through item23*/  

categories  2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ;
RHO PRIOR=1;
seed 123741;
run;```


CODE 2 - exactly same code with exactly same items but in a different order in the item statement:

proc lca data = lca OUTPARAM = testapp outpost = lcapp_post;
nclass 4;
id qid;
/*here is another order of SAME items listed in code#1*/ 
items item3 item21 item20 item22 item19 item10.../*and the rest*/ ; 

categories  2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ;
RHO PRIOR=1;
seed 123741;
run;