黃河泉 发表于 2019-5-3 11:03 
你的回归看起来不太对1. 你应该加入类似 i.id 而非 i.industry。2. 标准误要用 vce(cluster id)。
老师您好。
我用过这个命令:reg y D size debr age bsize concen roaa dual Bankloan i.year i.stkcd,vce(cl stkcd) ,显示为下面内容:
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 2000. 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.
我的样本是政策影响的445个企业,其余的作为对照组,而且政策的作用不是同一年,每个公司被影响的时间不同,也就是对照组每年都不同。