Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: estat icc
From
Roberto Ferrer <[email protected]>
To
Stata Help <[email protected]>
Subject
Re: st: estat icc
Date
Wed, 30 Oct 2013 17:04:12 -0430
This example works for me. Does it for you?
*------------------- begin code -------------------
clear
webuse nlswork
xtmixed ln_w grade age c.age#c.age ttl_exp tenure c.tenure#c.tenure ||
id: tenure
estat icc
*-------------------- end code -------------------------
On Wed, Oct 30, 2013 at 4:36 PM, sbs <[email protected]> wrote:
> Hello,
>
> I am attempting to use the postestimation command "estat icc" after using
> xtmixed for a mixed model. However, each of my attempts ends with this
> error:
>
> . estat icc
> invalid subcommand icc
> r(321);
>
>
> -------------------------------------------------------------------------------
> search for r(321) (manual: [R]
> search)
> -------------------------------------------------------------------------------
>
> Keywords: r(321)
> Search: (1) Official help files, FAQs, Examples, SJs, and STBs
>
>
> Search of official help files, FAQs, Examples, SJs, and STBs
>
> [P] error . . . . . . . . . . . . . . . . . . . . . . . . Return code
> 321
> requested action not valid after most recent estimation command;
> This message can be produced by predict or test and indicates
> that the requested action cannot be performed.
>
> (end of search)
>
>
> I am confused by this error since I found the estat icc command in
> documentation specific to xtmixed postestimations published by Stata.
> Specifically, the documentation says:
>
> estat icc displays the intraclass correlation for pairs of responses at
> each nested level of the model. Intraclass correlations are available for
> random-intercept models or for random-coefficient models conditional on
> random-effects covariates being equal to zero. They are not available
> for crossed-effects models or with residual error structures other than
> independent structures.
>
> Is there some reason why I would not be able to use estat icc? I am using
> Stata 12.
>
> Thank you for your help.
>
>
>
> --
> View this message in context: http://statalist.1588530.n2.nabble.com/estat-icc-tp7580448.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/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/