




已閱讀5頁,還剩34頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
MCMC Estimation for Random Effect Modelling The MLwiN experience,Dr William J. Browne School of Mathematical Sciences University of Nottingham,Contents,Random effect modelling, MCMC and MLwiN. Methods comparison Guatemalan child health example. Extendibility of MCMC algorithms: Cross classified and multiple membership models. Artificial insemination and Danish chicken examples. Further Extensions.,Random effect models,Models that account for the underlying structure in the dataset. Originally developed for nested structures (multilevel models), for example in education, pupils nested within schools. An extension of linear modelling with the inclusion of random effects. A typical 2-level model is Here i indexes pupils and j indexes schools.,MLwiN,Software package designed specifically for fitting multilevel models. Developed by a team led by Harvey Goldstein and Jon Rasbash at the Institute of Education in London over past 15 years or so. Earlier incarnations ML2, ML3, MLN. Originally contained classical IGLS estimation methods for fitting models. MLwiN launched in 1998 also included MCMC estimation. My role in team was as developer of MCMC functionality in MLwiN during 4.5 years at the IOE.,Estimation Methods for Multilevel Models,Due to additional random effects no simple matrix formulae exist for finding estimates in multilevel models. Two alternative approaches exist: Iterative algorithms e.g. IGLS, RIGLS, EM in HLM that alternate between estimating fixed and random effects until convergence. Can produce ML and REML estimates. Simulation-based Bayesian methods e.g. MCMC that attempt to draw samples from the posterior distribution of the model.,MCMC Algorithm,Consider the 2-level model MCMC algorithms work in a Bayesian framework and so we need to add prior distributions for the unknown parameters. Here there are 4 sets of unknown parameters: We will add prior distributions,MCMC Algorithm (2),The algorithm for this model then involves simulating in turn from the 4 sets of conditional distributions. Such an algorithm is known as Gibbs Sampling. MLwiN uses Gibbs sampling for all normal response models. Firstly we set starting values for each group of unknown parameters, Then sample from the following conditional distributions, firstly To get .,MCMC Algorithm (3),We next sample from to get , then to get , then finally To get . We have then updated all of the unknowns in the model. The process is then simply repeated many times, each time using the previously generated parameter values to generate the next set,Burn-in and estimates,Burn-in: It is general practice to throw away the first n values to allow the Markov chain to approach its equilibrium distribution namely the joint posterior distribution of interest. These iterations are known as the burn-in. Finding Estimates: We continue generating values at the end of the burn-in for another m iterations. These m values are then average to give point estimates of the parameter of interest. Posterior standard deviations and other summary measures can also be obtained from the chains.,Methods for non-normal responses,When the response variable is Binomial or Poisson then different algorithms are required. IGLS/RIGLS methods give quasilikelihood estimates e.g. MQL, PQL. MCMC algorithms including Metropolis Hastings sampling and Adaptive Rejection sampling are possible. Numerical Quadrature can give ML estimates but is not without problems.,So why use MCMC?,Often gives better estimates for non-normal responses. Gives full posterior distribution so interval estimates for derived quantities are easy to produce. Can easily be extended to more complex problems. Potential downside 1: Prior distributions required for all unknown parameters. Potential downside 2: MCMC estimation is much slower than the IGLS algorithm.,The Guatemalan Child Health dataset.,This consists of a subsample of 2,449 respondents from the 1987 National Survey of Maternal and Child Helath, with a 3-level structure of births within mothers within communities. The subsample consists of all women from the chosen communities who had some form of prenatal care during pregnancy. The response variable is whether this prenatal care was modern (physician or trained nurse) or not. Rodriguez and Goldman (1995) use the structure of this dataset to consider how well quasi-likelihood methods compare with considering the dataset without the multilevel structure and fitting a standard logistic regression. They perform this by constructing simulated datasets based on the original structure but with known true values for the fixed effects and variance parameters. They consider the MQL method and show that the estimates of the fixed effects produced by MQL are worse than the estimates produced by standard logistic regression disregarding the multilevel structure!,The Guatemalan Child Health dataset.,Goldstein and Rasbash (1996) consider the same problem but use the PQL method. They show that the results produced by PQL 2nd order estimation are far better than for MQL but still biased. The model in this situation is In this formulation i,j and k index the level 1, 2 and 3 units respectively. The variables x1,x2 and x3 are composite scales at each level because the original model contained many covariates at each level. Browne and Draper (2004) considered the hybrid Metropolis-Gibbs method in MLwiN and two possible variance priors (Gamma-1(,) and Uniform.,Simulation Results,The following gives point estimates (MCSE) for 4 methods and 500 simulated datasets.,Simulation Results,The following gives interval coverage probabilities (90%/95%) for 4 methods and 500 simulated datasets.,Summary of simulations,The Bayesian approach yields excellent bias and coverage results. For the fixed effects, MQL performs badly but the other 3 methods all do well. For the random effects, MQL and PQL both perform badly but MCMC with both priors is much better. Note that this is an extreme scenario with small levels 1 in level 2 yet high level 2 variance and in other examples MQL/PQL will not be so bad.,Extension 1: Cross-classified models,For example, schools by neighbourhoods. Schools will draw pupils from many different neighbourhoods and the pupils of a neighbourhood will go to several schools. No pure hierarchy can be found and pupils are said to be contained within a cross-classification of schools by neighbourhoods :,Notation,With hierarchical models we use a subscript notation that has one subscript per level and nesting is implied reading from the left. For example, subscript pattern ijk denotes the ith level 1 unit within the jth level 2 unit within the kth level 3 unit. If models become cross-classified we use the term classification instead of level. With notation that has one subscript per classification, that captures the relationship between classifications, notation can become very cumbersome. We propose an alternative notation introduced in Browne et al. (2001) that only has a single subscript no matter how many classifications are in the model.,Single subscript notation,We write the model as,Where classification 2 is neighbourhood and classification 3 is school. Classification 1 always corresponds to the classification at which the response measurements are made, in this case patients. For pupils 1 and 11 equation (1) becomes:,Classification diagrams,School,Pupil,Neighbourhood,Nested structure where schools are contained within neighbourhoods,Cross-classified structure where pupils from a school come from many neighbourhoods and pupils from a neighbourhood attend several schools.,In the single subscript notation we lose information about the relationship(crossed or nested) between classifications. A useful way of conveying this information is with the classification diagram. Which has one node per classification and nodes linked by arrows have a nested relationship and unlinked nodes have a crossed relationship.,Example : Artificial insemination by donor,1901 women 279 donors 1328 donations 12100 ovulatory cycles response is whether conception occurs in a given cycle,In terms of a unit diagram:,Or a classification diagram:,Model for artificial insemination data,We can write the model as,Results:,Note cross-classified models can be fitted in IGLS but are far easier to fit using MCMC estimation.,Extension 2: Multiple membership models,When level 1 units are members of more than one higher level unit we describe a model for such data as a multiple membership model. For example, Pupils change schools/classes and each school/class has an effect on pupil outcomes. Patients are seen by more than one nurse during the course of their treatment.,Notation,Note that nurse(i) now indexes the set of nurses that treat patient i and w(2)i,j is a weighting factor relating patient i to nurse j. For example, with four patients and three nurses, we may have the following weights:,Classification diagrams for multiple membership relationships,Double arrows indicate a multiple membership relationship between classifications.,We can mix multiple membership, crossed and hierarchical structures in a single model.,Example involving nesting, crossing and multiple membership Danish chickens,Production hierarchy 10,127 child flocks 725 houses 304 farms,Breeding hierarchy 10,127 child flocks 200 parent flocks,As a unit diagram:,As a classification diagram:,Model and results,Note multiple membership models can be fitted in IGLS and this model/dataset represents roughly the most complex model that the method can handle. Such models are far easier to fit using MCMC estimation.,Further Extensions / Work in progress,Multilevel factor models Response variables at different levels Missing data and multiple imputation ESRC grant: Sample size calculations, MCMC efficiency & Model identifiability Wellcome Fellowship grant for Martin Green,Multilevel factor analysis modelling,In sample surveys there are often many responses for each individual. Techniques like factor analysis are often used to identify underlying latent traits amongst these responses. Multilevel factor analysis allows factor analysis modelling to identify factors at various levels/classifications in the dataset so we can identify shared latent traits as well as individual level traits. Due to the nature of MCMC algorithms by adding a step to allow for multilevel factor models in MLwiN, cross-classified models can also be fitted without any additional programming! See Goldstein and Browne (2002,2005) for more detail.,Responses at different levels,In a medical survey some responses may refer to patients in a hospital while others may refer to the hospital itself. Models that combine these responses can be fitted using the IGLS algorithm in MLwiN and shouldnt pose any problems to MCMC estimation. The Centre for Multilevel modelling in Bristol are investigating such models as part of their LEMMA node in the ESRC research methods program. I am a named collaborator for the Lemma project. They are also looking at MCMC algorithms for latent growth models.,Missing data and multiple imputation,Missing data is proliferate in survey research. One popular approach to dealing with missing data is multiple imputation (Rubin 1987) where several imputed datasets are created and then the model of interest is fitted to each dataset and the estimates combined. Using a multivariate normal response multilevel model to generate the imputations using MCMC in MLwiN is described in chapter 17 of Browne (2003) James Carpenter (LSHTM) has begun work on macros in MLwiN that automate the multiple imputation procedure.,Sample size calculations,Another issue in data collection is how big a sample do we need to collect? Such sample size calculations have simple formulae if we can assume that an independent sample can be generated. If however we wish to account for the data structure in the calculation then things are more complex. One possibility is a simulation-based approach similar to that used in the model comparisons described earlier where many datasets are simulated to look at the power for a fixed sample size. Mousa Golalizadeh Lehi will be joining me in February on an ESRC grant looking at such an approach. A 4th year MMath. student (Lynda Leese) is looking at the approach for nested models.,Efficient MCMC algorithms,In MLwiN we have tended to use the simplest, most generally applicable MCMC algorithms for multilevel models. For particular models there are many approaches that may improve the performance / mixing of the MCMC algorithm. We will also investigate some of these methods in the ESRC grant. Browne (2004) looked at some reparameterisation methods for cross-classified models in a bird nesting dataset. A second 4th year MMath. student (Francis Bourchier) is looking at MCMC methods based around the IGLS representation of nested models which are interesting.,Model Identifiability,The final part of the ESRC grant is to look at whether a model is identifiable/estimable given a particular set of data. Cross-classified datasets where there are few level 1 units per higher level unit can result in each observation being factored into several random effects with very few observations being used to estimate each random effect. We are interested in establishing whether we can really estimate all parameters in such models. An example where we cant would be a dataset of patients who are attended by doctors in wards. Now if there is only one doctor per ward and likewise one ward per doctor then we cannot tease out doctor and ward effects. Again this work was motivated by a bird nesting dataset.,Wellcome Fellowship,Martin Green has been successful in obtaining 4 years of funding from Wellcome to come and work with me. The project is entitled Use of Bayesian statistical methods to investigate farm management strategies, cow traits and decision-making in the prevention of clinical and sub-clinical mastitis in dairy cows. Martin is a qualified veterinary and a specialist farm animal surgeon. He completed a PhD in 2004 at the University of Warwick veterinary epidemiology and used MCMC to fit binary response multilevel models in both MLwiN and WinBUGS to look at various factors that affect clinical mastitis in dairy cows.,Wellcome Fellowship,In the 4 years we are aiming to analyse a huge dataset that Martin has been collecting in a Milk Development Council grant. In particular we will look at how farm management practices, environmental conditions and cow characteristics influence the risk of mastitis during the dry period. We will hope to get interesting applied results and also some novel statistical methodology from the grant. MCMC will again play a big part. Martin has been appointed as a professor in the new vet school and will be working there 1 day a fortnight during the grant before moving there full time after the four years.,Conclusions,In this talk we have attempted to show the flexibility of MCMC methods in attempting to match the complexity of data structures found in real problems. We have also contrasted the methods with the IGLS algorithm. Although we have used MLwiN, all the models considered here could also be fitted in WinBUGS. WinBUGS offers even more flexibility in model choice for complex data structures however it is typically slower in fitting models that can also be fitted in MLwiN. Genstat and the GLLAMM package in Stata also deserve mention as alternatives
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 掌握2025年 VFP考試的核心知識點及試題及答案
- 轉讓工程合同協(xié)議書樣本
- 奧迪賣車合同協(xié)議書樣本
- 宴會酒店合同協(xié)議書模板
- 2025年VFP考試前沿試題及答案分享
- 自動化測試與手動測試的結合試題及答案
- 高效完成MS Office試題及答案
- 解除合同終止協(xié)議書
- 2025年計算機二級ACCESS復習注意事項試題及答案
- 嵌入式軟件調試常見試題及答案
- 15J403-1-樓梯欄桿欄板(一)
- 企業(yè)信用承諾函范文模板
- 游戲IP運營管理
- 2025年新高考數(shù)學選填壓軸好題匯編(一)(解析版)
- 國開學習網(wǎng)《中央銀行理論與實務》形考任務1-4答案
- 自考《社會保障概論00071》歷年真題和答案
- 端午節(jié)懷念屈原課件
- 人工勞務合同協(xié)議書
- HG-T 2006-2022 熱固性和熱塑性粉末涂料
- 端午節(jié)文化知識競賽試題及答案
- 員工個人勞務合同電子版
評論
0/150
提交評論