不明白这里的样本分离是指什么,我看了movestay命令的描述如下: movestay uses the maximum likelihood method to estimate the endogenous switching regression model. It is implemented using the d2 evaluator to calculate the overall log likelihood together with its first and second derivatives. 也就是说该命令是利用极大似然估计法估计内生机制转换模型,没有提到样本未分离。你可以试下findit switching regression model,通过这样搜索可以找到Stata中这方面的有关命令。