面板数据reg r 和n1,n2,请问行业哑变量industry1,industry2,industry3该如何引入stata做回归,在公式里该如何设置
请求高人指点
我直接在excel表中用“0”和“1”表示“属于”和“不属于”
但我不知道如何让stata知道industry是哑变量回归进行处理
在公式里是要引入3个哑变量industry1,industry2,industry3吗?还是只有一个industry
作论文急需
面板数据格式如下
company year R N1 N2 industry1 industry2 industry3
1 1997 23 5 5 1 0 0
1 1998 54 6 7 1 0 0
2 1997 56 8 5 0 1 0
2 1998 45 4 5 0 1 0