Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: panel
See also: panfix panrand panhaus

Quantlet: pantime
Description: subtracts the mean of period t from the model variables to account for fixed time effects.

Usage: y = pantime(z{, T})
Input:
z NT x {2+}k matrix of panel data. First column: identification number for cross section units (optional), Second column: dependent variable, Further columns: explanatory variables
T scalar, number of time periods for a BALANCED data set. (for a data set with the same T for all individuals = BALANCED PANEL)
Output:
y NT x {2+}k matrix of data with deviations of the time mean

Example:
library("panel")
z=read("earnings")
y=pantime(z)
y

Result:
Contents of 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
	...



Author: J. Breitung, 20011012 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006