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]

R: st: R: Anova repeated measures


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   R: st: R: Anova repeated measures
Date   Fri, 23 Apr 2010 12:53:17 +0200

Dear Peter,
unfortunately I don't know the answer to your question, since I cannot run
the same code on Stata 11.

Kind Regards and All the Best for your research project,
Carlo

-----Messaggio originale-----
Da: [email protected]
[mailto:[email protected]] Per conto di Peter Kraglund
Jacobsen
Inviato: giovedì 22 aprile 2010 19.26
A: [email protected]
Oggetto: Re: st: R: Anova repeated measures

I use Stata 11 IC. Could that be the reason?

2010/4/22 Carlo Lazzaro <[email protected]>:
> Dear Peter,
> You are right about time role: I did not take it into account in my
previous
> reply.
> Unfortunately, the code you suggest gives me the following error message
in
> Stata 9.2/SE):
> anova vas gruppe /projektnum|gruppe t t#gruppe , repeated(t)
> repeated term
> r(141);
>
> Admittedly, I did not investigate its cause.
>
> Kind Regards,
> Carlo
> -----Messaggio originale-----
> Da: [email protected]
> [mailto:[email protected]] Per conto di Peter Kraglund
> Jacobsen
> Inviato: giovedì 22 aprile 2010 16.42
> A: [email protected]
> Oggetto: Re: st: R: Anova repeated measures
>
> How do I take take the time factor into account, if not using ANOVA
> repeated measures?
> How about this:
> anova vas gruppe /projektnum|gruppe t t#gruppe , repeated(t)
>
> 2010/4/22 Carlo Lazzaro <[email protected]>:
>> Instead of a repeated ANOVA, and warning about the missing values (which
> may
>> raise substantial issues in his analysis), Peter may want to perform an
> OLS
>> on vas as dependent variable with clustered standard error on projektnum,
>> being this one the principal sample unit.
>>
>> ----------------- begin code ------------------
>> g gruppe_bis=0 if   gruppe=="Parenteral morphine"
>> replace gruppe_bis=1 if gruppe=="XXX with NaCl"
>> replace gruppe_bis=2 if   gruppe=="XXX with Naropine"
>> reg vas gruppe_bis, cluster(projektnum)
>> ----------------- end code ------------------
>>
>> HTH and Kind Regards,
>> Carlo
>> -----Messaggio originale-----
>> Da: [email protected]
>> [mailto:[email protected]] Per conto di Peter Kraglund
>> Jacobsen
>> Inviato: mercoledì 21 aprile 2010 22.24
>> A: [email protected]
>> Oggetto: st: Anova repeated measures
>>
>> projektnum      t       gruppe  vas
>> 93      1       Parenteral morphine     8
>> 93      2       Parenteral morphine     .
>> 93      3       Parenteral morphine     9
>> 93      4       Parenteral morphine     9
>> 93      5       Parenteral morphine     8
>> 95      1       XXX with NaCl   5
>> 95      2       XXX with NaCl   .
>> 95      3       XXX with NaCl   3
>> 95      4       XXX with NaCl   2
>> 95      5       XXX with NaCl   .
>> 101     1       XXX with Naropine       3
>> 101     2       XXX with Naropine       .
>> 101     3       XXX with Naropine       5
>> 101     4       XXX with Naropine       5
>> 101     5       XXX with Naropine       .
>>
>> In this example, three persons (projektnum) in three groups (gruppe)
>> are asked about pain score (vas) at five different times (t).
>> How do I show if there is a difference in VAS between the three groups?
>> *
>> *   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/
>>
>>
>>
>> *
>> *   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/
>>
>
> *
> *   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/
>
>
>
> *
> *   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/
>

*
*   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/



*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index