I understand how Wald testing is derived i.e.
(Sorry, not sure how to add formulae to these questions)
$$\dfrac{(RB-q)'(R(X'X)^{-1}R')(RB-q)}{s^{2}}$$
This will be distributed as F(M, N-K), where M is the number of restrictions and I am assuming that the coefficient vector B is normally distributed. R is the matrix of restrictions, and K the number of regressors.
In practice, I understand that instead of just estimating the unrestricted model and then calculating the above statistic, statistical packages estimate both the restricted and unrestricted models, and create an identically distributed statistic which is: $$ \frac{(SSR_r-SSR_{ur})/m}{(SSR_{ur})/(N-K)} $$ So my question is specifically, how is the restricted version of the model estimated when the restriction is that a ratio of two of the coefficients is equal to 1 (for example)?
Imagine the regression is $Y_t= C + B_1X_t + B_2Z_t + u_t$
The restriction to test is $B_1/B_2 = 1$
Would this need to be done via non-linear regression?