Recently, I've been reading Yudi Pawitan's book, In All Likelihood.
In the book, there's a section on profile likelihood; the methods explored in this section are subsequently applied to some data on heart attack prevalence amongst two distinct groups: people taking aspirin and people subjected to a placebo; the groups are modelled as $\text{Bin}(n_{a}, \theta_{a})$ and $\text{Bin}(n_{p}, \theta_{p})$ respectively. Since $n_{a}$ and $n_{p}$ are large while the event rates are small, $X_{a}$ and $X_{p}$ are approximately Poisson with parameters $n_{a}\theta_{a}$ and $n_{p}\theta_{p}$ respectively.
You can see the example here (Pages 87 and 88).
At the end, it is shown that the profile likelihood for a parameter of interest $\theta$ is given by:
$$ L(\theta, \theta_{p}) = \text{constant} \times e^{-\theta_{p}(n_{a}\theta+n_{p})} \theta^{x_{a}} \theta_{p}^{x_{a}+x_{p}} (1)$$
where $\hat{\theta}_{p} = \frac{x_{a}+x_{p}}{n_{a}\theta+n_{p}}$, the MLE for $\theta_{p}$, should be substituted into the above model for $\theta_{p}$.
and
$n_{a}$ : number of people in aspirin group, $n_{p}$ : number of people placebo group, $x_{a}$ : number of heart attacks amongst aspirin group, $x_{p}$ : number of heart attacks amongst placebo group.
also
$\theta = \frac{\theta_{a}}{\theta_{p}}$, $\theta_{a}$ : probability of heart attack in aspirin group and $\theta_{a}$ : probability of heart attack in placebo group.
The above likelihood is then further expressed as binomial, taking the following form:
$$ L(\theta) = \text{constant} \times \left(\frac{n_{a}\theta}{n_{a}\theta+n_{p}}\right)^{x_{a}} \left(1-\frac{n_{a}\theta}{n_{a}\theta+n_{p}}\right)^{x_p} (2)$$
I have tried to understand how to get from the expression given in $(1)$ to the expression given in $(2)$, but when I make the substitution for $\hat{\theta}_{p}$, I get the following:
$$ e^{-(x_{a}+x_{p})}\theta^{x_{a}}(x_{a}+x_{p})^{x_{a}+x_{p}}\left(\frac{1}{n_{a}\theta+np}\right)^{x_{a}+x_{p}} $$
where $e^{-(x_{a}+x_{p})} = \text{constant}$ as it doesn't depend on $\theta$.
I believe this is along the right lines, but I'm not sure where to go next.
Perhaps somebody could explain how to get from expression $(1)$ to expression $(2)$.