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: repeated measures problem


From   "Lachenbruch, Peter" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: repeated measures problem
Date   Tue, 18 Jun 2013 21:43:03 +0000

I have data with groups (repeated measures) and a number of covariates:
tab profid
 tab profid
 Profile_ID |      Freq.     Percent        Cum.
------------+-----------------------------------
SURV1-A-001 |         59        2.69        2.69
SURV1-A-002 |         59        2.69        5.39
SURV1-A-003 |         59        2.69        8.08
SURV1-A-004 |         59        2.69       10.78
SURV1-A-005 |         59        2.69       13.47
SURV1-A-006 |         59        2.69       16.16
SURV1-A-007 |         59        2.69       18.86
SURV1-A-008 |         59        2.69       21.55
SURV1-A-009 |         59        2.69       24.25
SURV1-A-010 |         59        2.69       26.94
SURV1-A-011 |         59        2.69       29.63
SURV1-A-012 |         59        2.69       32.33
SURV1-A-013 |         59        2.69       35.02
SURV1-A-014 |         59        2.69       37.72
SURV1-A-015 |         59        2.69       40.41
SURV1-P-001 |         87        3.97       44.38
SURV1-P-002 |         87        3.97       48.36
SURV1-P-003 |         87        3.97       52.33
SURV1-P-004 |         87        3.97       56.30
SURV1-P-005 |         87        3.97       60.27
SURV1-P-006 |         87        3.97       64.25
SURV1-P-007 |         87        3.97       68.22
SURV1-P-008 |         87        3.97       72.19
SURV1-P-009 |         87        3.97       76.16
SURV1-P-010 |         87        3.97       80.14
SURV1-P-011 |         87        3.97       84.11
SURV1-P-012 |         87        3.97       88.08
SURV1-P-013 |         87        3.97       92.05
SURV1-P-014 |         87        3.97       96.03
SURV1-P-015 |         87        3.97      100.00
------------+----------------------------------- 
      Total |      2,190      100.00
I wish to do a repeated measures anova as follows:
. anova q1 profid rater_type cat_tot_score cat_hours NorthAm, repeated(profid)
could not determine between-subject error term; use bse() option
r(421);
When i use the bse(profid) Stata tells me
. anova q1 profid rater_type cat_tot_score cat_hours NorthAm, repeated(profid) bse(profid)
could not determine between-subject basic unit; use bseunit() option
r(422);
If i use the bseunit option I get a similar message
If i xtset and uxe xtreg it seems to work all right, but i'm concerned that i'm getting nonsense.
here is the data directory


              storage  display     value
variable name   type   format      label      variable label
------------------------------------------------------------------------------------------------------------------------------------------------------------
rater_id        int    %10.0g                 rater_id
prof_type       byte   %15.0g      prof_type
                                              prof_type
rater_type      byte   %10.0g      rater_type
                                              rater_type
cat_tot_score   byte   %10.0g      cat_tot_score
                                              cat_tot_score
cat_specialty   byte   %18.0g      cat_specialty
                                              cat_specialty
cat_hours       byte   %10.0g                 cat_hours
NorthAm         byte   %14.0g      NorthAm    NorthAm
q1              float  %9.0g                  
q2              float  %9.0g                  
adult           float  %9.0g                  
profid          long   %11.0g      profid     Profile_ID

Peter A. Lachenbruch,
Professor (retired)
*
*   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