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: R: Anova repeated measures


From   "Carlo Lazzaro" <[email protected]>
To   <[email protected]>
Subject   st: R: Anova repeated measures
Date   Thu, 22 Apr 2010 12:41:52 +0200

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/


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