Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Syntax for Gllamm 3 level model with random slope


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index