Havard and Finn
Thank you, I hadn't appreciated that it might involve changes to the code from your end.
It sounds like Finn's suggestion would solve the mathematical problem (although I'm not a mathematician, so may be wrong), but thinking about what it means to my application is interesting. For example, the information that an area has no cases of disease occasionally may (should) affect the capacity to treat that disease, but that may vary between diseases or treatments.
Let me try to explain more clearly my problem. There is a country, divided into areas. In each area there is the potential to apply a treatment for a specific disease (for example each area has specialist doctors, hospitals, medicines, equipment etc). In each area cases of the disease arise randomly (under the influence of the population in the area, their health status etc) and each case may or may not receive the treatment. The potential to treat cases is probably increasing over time, but at different rates in different areas. The area and time boundaries are blurred because the capacity to treat at time t+1 is related to the capacity to treat at time t (if the number of doctors increases slowly over time for example), and because neighbouring areas influence each other.
Now, this capacity to treat disease (phrased as the probability that a case will receive treatment) is varying but present throughout time and space, and I want to be able to know what that capacity is at any time and place (only within the time that I have measured and the areas within the country). Likewise the potential to develop cases of the disease is varying but present throughout time and space, even though there may be no realisations of the potential in a particular area at a particular time.
Although the capacity to treat may exist, it cannot be deployed unless there is a case of the disease to apply it to. But the capacity still remains, and I still want to estimate what it is.
What I had hoped to end up with is a model something like:
formula <- treatment ~ f(area, model="bym", ...) + f(time, model="rw1", ...) + (area.time, model="iid", ...)
result <- inla(formula, family="binomial", Ntrials=cases, ...)
But if there is a better way to do this then I'm open to suggestions. If code changes are necessary I'm happy to help with testing as well.
Thanks again
Duncan