wald_betas {spsur}R Documentation

Wald tests on the beta coefficients

Description

The function wald_betas can be seen as a complement to the restricted estimation procedures included in the functions spsurml and spsur3sls. wald_betas obtains Wald tests for sets of linear restrictions on the coefficients \beta of the SUR model. The restrictions may involve coefficients of the same equation or coefficients from different equations. The function has great flexibility in this respect. Note that wald_betas is more general than lr_betas in the sense that the last function only allows to test for restrictions of homogeneity of subsets of \beta coefficients among the different equations in the SUR model, and in a maximum-likelihood framework.

In order to work with wald_betas, the model on which the linear restrictions are to be tested needs to exists as an spsur object. Using the information contained in the object, wald_betas obtains the corresponding Wald estatistic for the null hypotheses specified by the user through the R row vector and b column vector, used also in spsurml and spsur3sls. The function shows the value of the Wald test statistics and its associated p-values.

Usage

wald_betas (obj , R , b)

Arguments

obj

An spsur object created by spsurml, spsur3sls or spsurtime.

R

A row vector of order (1xPr) showing the set of r linear constraints on the \beta parameters. The first restriction appears in the first K terms in R, the second restriction in the next K terms and so on.

b

A column vector of order (rx1) with the values of the linear restrictions on the \beta parameters.

Value

Object of htest class including the Wald statistic, the corresponding p-value, the degrees of freedom and the values of the sample estimates.

Author(s)

Fernando Lopez fernando.lopez@upct.es
Roman Minguez roman.minguez@uclm.es
Jesus Mur jmur@unizar.es

References

See Also

spsurml, spsur3sls, lr_betas

Examples

## VIP: The output of the whole set of the examples can be examined 
## by executing demo(demo_wald_betas, package="spsur")

#################################################
######## CROSS SECTION DATA (G=1; Tm>1) ########
#################################################

##### Example 1: Spatial Phillips-Curve. Anselin (1988, p. 203)
rm(list = ls()) # Clean memory
data(spc)
lwspc <- spdep::mat2listw(Wspc, style = "W")
Tformula <- WAGE83 | WAGE81 ~ UN83 + NMR83 + SMSA | UN80 + NMR80 + SMSA
### Estimate SUR-SLM model
spcsur.slm <- spsurml(formula = Tformula, data = spc, 
                      type = "slm", listw = lwspc)
summary(spcsur.slm)
### H_0: equality between SMSA coefficients in both equations.
R1 <- matrix(c(0,0,0,1,0,0,0,-1), nrow=1)
b1 <- matrix(0, ncol=1)

wald_betas(spcsur.slm, R = R1, b = b1)

[Package spsur version 1.0.2.5 Index]