## Example in Bera et al.
data(Grunfeld, package="Ecdat")
## Bera et al. use a subset of the original Grunfeld data,
## so results are slightly different here
## default is AR testing
pbsytest(inv ~ value + capital, data=Grunfeld)
pbsytest(inv ~ value + capital, data=Grunfeld, test="RE")
pbsytest(inv ~ value + capital, data=Grunfeld, test="J")
Run the code above in your browser using DataLab