Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | aimes87 <aimes87@hotmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: Syntax for Gllamm 3 level model with random slope |
Date | Sun, 15 May 2011 04:43:29 -0700 (PDT) |
Hi, I am trying to fit a 3 level model (conceptions nested within cow id numbers nested within years). I have 5 conception covariates -all of which are dichotomous (rp metr preglame pregmast preabort). My outcome is a dichotomous: abortion or no abortion. I also have a time variable (days in milk (dim)) which I think should be included as a random slope at the conception level. Could anyone help me with the syntax for such a model? I have tried using: . eq cons: 1 . eq slope: dim . gllamm abort preabort rp metr preglame pregmast dim, i(id year) nrf(2 1) eqs(cons slope cons) but Stata returns the message (after a long time) that convergence could not be achieved. Any help would be greatly appreciated! Aimee -- View this message in context: http://statalist.1588530.n2.nabble.com/Syntax-for-Gllamm-3-level-model-with-random-slope-tp6365272p6365272.html Sent from the Statalist mailing list archive at Nabble.com. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/