Suppose I have the following joint model:
$$ y_{f_i} = \beta_1 + \beta_2 t_i + \beta_3 s_i +\epsilon_i $$
$$ y_{m_i} = \beta_4 + \beta_5t_i + \beta_6 s_i +\epsilon_i $$
where $y_{f_i}$ corresponds to the female portion of the response variable, and $y_{m_i}$ corresponds to the male portion, and $t_i,s_i$ are some predictors.
I want to do a hypothesis test such as
$$H_0: \beta_2 = \beta_5 =0 \quad \text{and}\quad\beta_3 = \beta_6,\quad \text{against} \quad \text{not}\quad H_0$$
I would like to use the F test, but I don't understand how I would deal with the fact that we are using a joint model. Any help is appreciated.
The proper way to do it is by estimating $$ y_i = \beta_0 + \beta_1t_i + \beta_2D_i + \beta_3D_is_i + \beta_4s_i + \epsilon_i $$ where $D_i=1$ if $i$th patient is a male. This is your full model. The restricted model will be $$ y_i = \beta_0 + \beta_2D_i + \beta_3s_i + \epsilon. $$ Now you can take the $R^2$ of each model and compute the partial $F$-test.