## Example in Bera et al.
data(Grunfeld, package="plm")
## 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, index = c("firm","year"))
pbsytest(inv ~ value + capital, data=Grunfeld, test="re", index = c("firm","year"))
pbsytest(inv ~ value + capital, data=Grunfeld, test="j", index = c("firm","year"))
Run the code above in your browser using DataLab