简体   繁体   English

R软件包“ MSwM”的结果不一致

[英]R Package 'MSwM' has inconsistent result

mod.mswm <- msmFit(lm(y~x),k=2,p=1,sw=rep(T,4),control=list(maxiter=700,parallel=F)) summary(mod.mswm) mod.mswm <-msmFit(lm(y〜x),k = 2,p = 1,sw = rep(T,4),control = list(maxiter = 700,parallel = F))摘要(mod.mswm)

I have a inconsistent result in this r packages.. 我在这个r包中有不一致的结果。

First Running -> regime 1 = "estimate = 0.05" 首次跑步->模式1 =“估算= 0.05”
  regime 2 = "estimate = 0.90" 
Second Running -> regime 1 = "estimate = 0.90" 第二次运行->方案1 =“估算= 0.90”
  regime 2 = "estimate = 0.05" 

Please help me.. 请帮我..

First, I suggest taking a look at the R codes for that function msmFit and pay special attention to whether any random number generators are used and whether there is set.seed before it. 首先,我建议看一下该函数msmFit的R代码,并特别注意是否使用了任何随机数生成器,以及之前是否有set.seed The inconsistent results, from my experience of other packages, are probably due to this reason. 根据我在其他软件包中的经验,不一致的结果可能是由于这个原因。

Second, I see there seems to be a "switch" between the two results for the two regimes in terms of the estimates -- that is (to me) a very interesting observation and I am not sure if there is any underlying hidden relationships. 其次,我认为两种制度的两种结果在估计数之间似乎都有一个“转换”-(对我而言)这是一个非常有趣的观察结果,我不确定是否存在任何潜在的潜在关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM