• No results found

Variance Component models

In document Modelling HIV/AIDS epidemic in Nigeria (Page 110-119)

2.6 Multi-level Models

2.6.1 Variance Component models

In this section, we examine simultaneously the effects of individual-level and group-level factors on risk of HIV infection. The data defines a multilevel structure:-sites are within states and the states are grouped into zones. Information on HIV positivity is collected from individuals in the sites. Hence, it is possible to have a three-level (site, state and zone) model or a two-level (site/state or state/zone) model as the data is also aggregated by state. Langford et al(112) extended the multilevel models developed by Goldstein (105), (107) to disease mapping. The simplest Poisson multilevel model is the one that incorporates a measure of the extra-Poisson variation in the model as a high level variable. Given the covariates xi, the logarithm of the mean of the relative risks is

log(µi) = log(Ei) + α + xTi β + ui

where ui are the heterogeneity effects or extra-Poisson variation caused by

variation among underlying populations at risk in the areas considered. log(Ei) is the offset which accounts for the population at risk and α is the intercept.

ui ∼ N(0, σu)

and

log(θi) ∼ N(µi, σu)

where

µi = xTi β

This model can be extended to a model with more than one higher level of geographical aggregation (107) (118), (112). For a model consisting of two levels, site i nested in the state j , then the observed HIV counts in site i becomes

Oij ∼ P oisson(θijEij)

And the log-linear model becomes

log(µij) = log(Eij) + α + xTijβ + uij + vj

uij ∼ N(0, σu), vj ∼ N(0, σv)

And a three-level model comprising of site i nested in state j nested within zone k we have that

Oijk ∼ P oisson(θijkEijk)

and

log(µijk) = log(Eijk) + α + xTijkβ + uijk+ vjk + yk

uijk ∼ N(0, σu), vjk ∼ N(0, σv), yk∼ N(0, σy)

where uijk are the random effects for the sites, vjk are the random effects for the states and yk are the random effects for the zones.

Hence log(θ) ∼ MV N (µ, Σ). where Σ is a block diagonal comprising of the variance of the three random effects due to site, state and zone respectively.

The models we have considered so far are the variance component models.

The effects of the spatial distribution of the sites and the states were not taken into cognisance.

The variance component models can be fitted using the quasi-likelihood, iter-ative generalized least squares (IGLS), Fisher scoring algorithm or the restricted iterative generalized least squares (RIGLS). The detailed account of the algo-rithm for the estimation procedure of the multilevel model is given in Goldstein (105).

Iterative Generalized Least Squares

This method is based on generalized least squares which gives the maximum likelihood estimates for hierarchically structured data (105). A simple model of fixed and random effects (107),(184) is given as,

Y = Xβ + Zθ (2.58)

where Xβ is the fixed part and Zθ is the random part. Y is the observed vector of events being modelled by predictor variables X and the fixed parameters β, and the predictor variable Z with random coefficients θ. The design matrices X and Z need not be the same. Z may represent variables random at any level in the model.

The procedure of the IGLS is a two-stage process for estimating the fixed parameters and the variances and covariances of the random parameters in suc-cessive iterations. The first stage is to estimate the fixed parameters using the ordinary least squares regression and taking the higher level variances to be zero.

The vector of residuals from this initial model is then used to construct the initial values for the dispersion matrix V . The dispersion matrix is then used in the estimation of the fixed parameters using the generalized least squares estimation procedure as

β = (Xˆ TV−1X)−1XTV−1Y (2.59)

again the vector of residuals are computed as

Y = Y − X ˆ˜ β (2.60)

and we obtain the cross-product matrix of the residuals, Y = ˜Y ˜YT such that

V = E(Y) = E( ˜Y ˜YT) (2.61)

We then stack the columns of the cross-product matrix into a vector,

Y∗∗= vec( ˜Y ˜YT) = vec[(Y − X ˆβ)(Y − X ˆβ)T] (2.62)

and Y∗∗will then be used as the response variable in a regression equation to estimate the random parameters. The covariance of the random coefficients θ is estimated as

cov(ˆθ) = (ZTV∗−1Z)−1ZTV∗−1Y∗∗ (2.63)

where V is the Kronecker product of V , that is V = V N

V . Assuming mul-tivariate normality, the estimated covariance matrix for the fixed parameters is

cov(β) = (XTV−1X)−1 (2.64)

Goldstein and Rabash (108) gave the estimate of the random parameters as

cov(ˆθ) = 2(ZTV∗−1Z)−1 (2.65)

Hence, the iterative procedure continues alternating between estimation of the fixed and random parameter vectors until convergence is achieved.

Fisher Scoring algorithm

This iterative technique is used to obtain the maximum likelihood estimate of the hyperparameters γ which are updated using estimates from the pth iteration as

ˆ

γ = γ(p)+ i(p)−1U(p)

where i(p) is the Fisher’s information matrix and U(p) is the score statistic and both of them are evaluated at γ(p). See Breslow and Clayton (184)for more details in this estimation procedure.

Penalized Quasi-likelihood (PQL)

Given that the observed number of cases (Oi) in each site follow the Poisson distribution with mean µi and that

log(µi) = log(Ei) + α + xiβ + ui (2.66)

this equation implies a nonlinear (logarithmic) relationship between the ob-served number of cases Oiand the predictor part of the model. Hence, the normal distribution approximation does not directly apply here. In order to estimate the random parameters ˆui from the model we use the penalized quasi-likelihood es-timation procedure which involves the application of an approximate linearizing technique at each iteration using a first and second order Taylor series approxi-mation. If

µi = f (H)

where H = α+xiβ +ui and if Htis the value of the linear predictor H at iteration t, then f (Ht+1) is expressed as a function of Ht through a second-order Taylor expansion about the current fixed and random part estimates as

f (Ht+1) = f (Ht) + xit+1− ˆβt)f0(Ht) + (ut+1,i− ˆut,i)f0(Ht)

+(ut+1,i− ˆut,i)2f00(Ht)/2 (2.67)

The first two terms on the right-hand side provide the updating function for the fixed part of the model and the last two terms are for the estimation of the random part. See Breslow and Clayton (184), Goldstein (107) and Goldstein and Rasbash (109) for a full description of the linearizing procedure. For the Poisson distribution

f (H) = f0(H) = f00(H) = exp(Xiβˆti+ ˆui) (2.68)

Langford et al. (1999) gave the extension of the PQL procedure to spatial models as follows:

log(µi) = log(Ei) + α + xiβ + ui+ vi (2.69)

The random parameters ˆui and ˆvi are estimated from the model using the pro-cedure outlined above as

µi = f (H)

where H = α + xiβ + ui+ vi and

f (Ht+1) = f (Ht) + (αt+1− ˆαt) + xit+1− ˆβt)f0(Ht) + (ut+1,i− ˆut,i)f0(Ht)

+(vt+1,i− ˆvt,i)f0(Ht) + (ut+1,i− ˆut,i)2f00(Ht)/2 + (vt+1,i− ˆvt,i)2f00(Ht)/2 (2.70)

The first three terms on the right-hand side provide the updating function for the fixed part of the model and the last four terms is for the estimation of the random part.

Marginal Quasi-likelihood (MQL)

The linearizing procedure given equations (2.67) and (2.70) above can lead to convergence problems or the model may fail if residuals are very large. To

overcome this limitation the MQL procedure (184),(107) can be adopted whereby the second-order terms in the equations (2.67) and (2.70 are omitted. In extreme cases, estimates can be based only on the fixed part of the model such that

Ht = Xiβˆt

This procedure has the disadvantage of producing biased estimates when the sample size is small. However, it can be corrected using bootstrap procedures (107). Generally, the PQL procedure gives better estimates than the MQL (107).

Restricted Iterative Generalized Least Squares

This is an extension of the IGLS. Like the maximum likelihood estimates, the IGLS estimates are biased. Goldstein (106) shows that a slight modification of the IGLS by restricting the model to take account of the sampling variations in the parameters can lead to unbiased estimates of the fixed and random parameters.

Given the general model,

Y = Xβ + Zθ

such that E[(Zθ)(Zθ)T] = V and cov( ˆβ) = (XTV−1X)−1 Then the

E[(Y − X ˆβ)(Y − X ˆβ)T] = V − Xcov( ˆβ)XT = V − X(XTV−1X)−1XT

where X is the design matrix for the fixed effects in the model with full rank. V is then updated at each iteration using its current value ˆV as

V = (Y − X ˆβ)(Y − X ˆβ)T + X(XTVˆ−1X)−1XT

The last term X(XTVˆ−1X)−1XT can be regarded as a bias correction term.

Under the assumption of multivariate normality this procedure is equivalent to restricted maximum likelihood.

In document Modelling HIV/AIDS epidemic in Nigeria (Page 110-119)