Library: | metrics |
See also: | panfix panrand panhaus |
Quantlet: | pantime | |
Description: | Subtracts the mean of period t from the model variables. Purpose: Accounting for fixed time effects |
Usage: | (y)=pantime(z,{T}) | |
Input: | ||
z | Data matrix. First column: Identification number for cross section units (optional), Second column: depen- dent variable, Further columns: explanatory variables | |
T | Number of time periods for a BALANCED Dataset. Optional, only for a Dataset with the same T for all Individuals = BALANCED PANEL | |
Output: | ||
y | Data matrix with deviations of the time mean |
library("metrics") z=read("earnings") y=pantime(z) y
[ 1,] 1 1 -905.26 -2.26 -0.93 0.66 [ 2,] 1 2 -1114.6 -2.26 -0.93 0.66 [ 3,] 1 3 -1195.2 -2.25 -0.94 0.66 [ 4,] 1 4 -725.72 -2.24 -0.95 0.66 [ 5,] 1 5 -1196.3 -2.24 -0.95 0.66 [ 6,] 2 1 -655.26 -3.26 3.07 -0.34 [ 7,] 2 2 385.35 -3.26 3.07 -0.34 [ 8,] 2 3 104.77 -3.25 3.06 -0.34 [ 9,] 2 4 74.28 -3.24 3.05 -0.34 [ 10,] 2 5 1169.7 -3.24 3.05 -0.34 [ 11,] 3 1 -905.26 0.74 -0.93 0.66 [ 12,] 3 2 -1714.6 0.74 -0.93 0.66
Library: | metrics |
See also: | panfix panrand panhaus |