优雅的胖子 发表于 2017-4-8 10:24 
把min()里的值填的大一点
xtthres sr lnincome cpi g r, thres(g) dthres(ydr) ///
> min(200) bs1(500) bs2(500) bs3(500)
Begin Time : 8 Apr 2017 18:30:36
+----------------------------------+
| ---单一门槛面板模型--- |
+----------------------------------+
第一个门槛估计值:10.525993
Fixed-effects (within) regression Number of obs = 420
Group variable: code Number of groups = 28
R-sq: within = 0.6262 Obs per group: min = 15
between = 0.0012 avg = 15.0
overall = 0.3425 max = 15
F(6,386) = 107.76
corr(u_i, Xb) = -0.1444 Prob > F = 0.0000
------------------------------------------------------------------------------
sr | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lnincome | .0597806 .0044208 13.52 0.000 .0510888 .0684725
cpi | .0003961 .0008992 0.44 0.660 -.0013718 .0021641
g | .0003115 .0006866 0.45 0.650 -.0010385 .0016616
r | .0025292 .0034144 0.74 0.459 -.0041839 .0092422
ydr_1 | -.0026206 .0006579 -3.98 0.000 -.003914 -.0013271
ydr_2 | -.0024017 .0006738 -3.56 0.000 -.0037265 -.0010768
_cons | -.2531129 .0521877 -4.85 0.000 -.3557206 -.1505052
-------------+----------------------------------------------------------------
sigma_u | .03904374
sigma_e | .02944234
rho | .63749259 (fraction of variance due to u_i)
------------------------------------------------------------------------------
F test that all u_i=0: F(27, 386) = 20.17 Prob > F = 0.0000
STATA 自抽样中,请等待 ... ...
matsize too small
You have attempted to create a matrix with too many rows or columns or
attempted to fit a model with too many variables. You need to increase
matsize; it is currently 420. Use set matsize; see help matsize.
If you are using factor variables and included an interaction that has
lots of missing cells, either increase matsize or set emptycells drop to
reduce the required matrix size; see help set emptycells.
If you are using factor variables, you might have accidentally treated a
continuous variable as a categorical, resulting in lots of categories.
Use the c. operator on such variables.
r(908);
都设成200了还是这个样子