2

# r_matrix performs f_test for using dimensions that are asymptotically non-normal

Package:

statsmodels

6600

Exception Class:

ValueError

## Raise code

```
_matrix.shape[0] != J:
raise ValueError("r_matrix and q_matrix must have the same "
"number of rows")
Rbq = cparams - q_matrix
if invcov is None:
cov_p = self.cov_params(r_matrix=r_matrix, cov_p=cov_p)
if np.isnan(cov_p).max():
raise ValueError("r_matrix performs f_test for using "
"dimensions that are asymptotically "
"non-normal")
invcov = np.linalg.pinv(cov_p)
J_ = np.linalg.matrix_rank(cov_p)
if J_ < J:
warnings.warn('covariance of constraints does not have full '
'rank. The number of constraints is %d, but '
```

## Links to the raise (1)

https://github.com/statsmodels/statsmodels/blob/9ec982db6806deb9bfe13d72bbfabd3271c4d063/statsmodels/base/model.py#L1827NO FIXES YET

Just press the button and we will add solution

to this exception as soon as possible

* As many users press the button, the faster we create a fix

### Add a possible fix

Please authorize to post fix