You could use the library car
, and use the function linearHypothesis
with the parameter vcov
.
Set this as the variance-covariance
matrix of your model.
The function takes formulas or a matrix to describe the system of equations that you would like to test.