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 at the end of May, and its replacement, statalist.org is already up and running.


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

R: st: R: Anova repeated measures


From   "Carlo Lazzaro" <carlo.lazzaro@tiscalinet.it>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Peter Kraglund
Jacobsen
Inviato: giovedì 22 aprile 2010 19.26
A: statalist@hsphsun2.harvard.edu
Oggetto: Re: st: R: Anova repeated measures

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

2010/4/22 Carlo Lazzaro <carlo.lazzaro@tiscalinet.it>:
> 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: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Peter Kraglund
> Jacobsen
> Inviato: giovedì 22 aprile 2010 16.42
> A: statalist@hsphsun2.harvard.edu
> 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 <carlo.lazzaro@tiscalinet.it>:
>> 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: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Peter Kraglund
>> Jacobsen
>> Inviato: mercoledì 21 aprile 2010 22.24
>> A: statalist@hsphsun2.harvard.edu
>> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index