/* Analyzing One-Way Effects Fixed Effects Model: Deviation Approach */ use gpe2; @ output file = lpt1 reset; @ load c[5,7] = tsinghua\cost.txt; load q[5,7] = tsinghua\output.txt; /* panel definition */ n=6; @ 6 cross sections @ t=4; @ 4 time periods @ @ log-transformed data series @ y = ln(c[2:5,2:7]); x = ln(q[2:5,2:7]); /* @ from panel data series, swap n and t to analyze period effects @ y=y'; x=x'; n=4; t=6; */ @ stacked data series, by firms @ ys = vec(y); xs = vec(x); call reset; _names = {"ln(c)","ln(q)"}; call panel1(ys,xs,n,t); end; #include gpe\panel1.gpe;