先要根据行业、年份找到ST公司在当年资产最相近的公司,
proc sql;
create table temp as select *
from st,gg
where st.Csrciccd1 = gg.Csrciccd1
and st.year = gg.year
and (abs(st.totass-gg.totass1)/st.totass <= 0.05);
quit;
其中st 数据集为包括ST的数据,gg数据集为非ST公司数据;Csrciccd是行业代码变量,
totass 变量是当年总资产,
经过上述步骤匹配后,有一对多的情况,接下来不知道怎么处理,求高手指教?或者还有其他方法实现?
谢谢!