The Wald Tests For Testing Hypotheses: Eco321: Econometrics
The Wald Tests For Testing Hypotheses: Eco321: Econometrics
Spring 2005
Matlab Commands
The dependent and explanatory variables
open dataset data = csvread(wages2.csv) ;
%
Explanatory Variables Age = data(:,3) ; Education = data(:,5) ; Female = data(:,6) ; X = [Age Education Female];
%
Matlab Commands
Estimation by OLS
Regress LogWage on X Out = regstats (LogWage, X, linear) ;
%
H0 : R = r where R is a q k matrix
W = (R r ) [RVar ()R ]1 (R r ) 2 q
0 0
R
0 1 2 = 3
0
r
Example 2
H0 : 2 = 3
0 1 1 0
0 1 2 = 3
Example 3
H0 : 1 = 0 and 2 = 0
0 0 1 0 0 1 0 0
0 1 2 = 3
0 0
Testing Hypothesis
H0 : M = W where M and W are k 1 matrices
Divide the whole sample into mens and womens samples. Run Regressions, separately. Find , Var ( ) and , Var ( ) M M W W
See the Professors class handout, Comparing Womens and Mens Wage Regressions, on Blackboard.