Bookmark and Share

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]

st: ANOVA with random effect


From   Ada Keding <[email protected]>
To   statalist <[email protected]>
Subject   st: ANOVA with random effect
Date   Mon, 10 Mar 2014 15:36:26 +0000

Dear all,

I would like to run an ANOVA with a random operator effect.

In my data I have two treatments (A or B, fixed effect) for which a
continuous outcome is measured. However, outcomes are clustered by a
random effect operator. Each operator has one outcome per treatment
group.

Treatment    Outcome   Operator
(fixed)                               (random)
A                     x.xx             1
B                     x.xx             1
A                     x.xx             2
B                     x.xx             2
...                     ...               ...

I tried something like:

anova outcome treatment /  operator|treatment

However, running this, the Residual is 0. I think this model only
applies if I had multiple observations in each treatment arm for each
operator.

Is anyone able to advise how I could get a fixed treatment estimate
while accounting for random operators in the anova command?

Many thanks,

Ada

Statistician
University of York
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index