Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Joerg Luedicke <joerg.luedicke@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: xtmixed |
Date | Fri, 21 Dec 2012 09:22:38 -0500 |
Instead of: xtmixed vardep var_indep1 var_indep2 || u : var_indep2 , residuals (ar 1, t(year)) try: xtmixed vardep var_indep1 var_indep2 || u : var_indep2 , residuals(ar 1, t(year)) Note the blank between -residuals- and the opening bracket. Joerg On Fri, Dec 21, 2012 at 7:07 AM, Carmen Blanco <blnco.mc@gmail.com> wrote: > Dear statalist, > > I need your help. > I have a panel data with ar 1. > I estimate with the command xtmixed the following expression: > > xtmixed vardep var_indep1 var_indep2 || u : var_indep2 , residuals (ar > 1, t(year)) > > where u is the random error component > and I want the random slope in the var_indep2 > > Could someone tell me, please, why Stata reports me an error (invalid > something: unmatched close parenthesis or bracket) in my expression? > > I appreciate it > > C. > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/