I am having some trouble running a two-way repeated measures anova.
First, let me describe the nature of my data: I have 225 subjects who each completed 190 trials. In each trial, the subject is presented with a prime (1 of 3 possible primes), then given a target image to respond to (1 of 2 possible target images). I have recorded the response time (RT) for each trial. This is a within-subjects 3x2 design. That is, for each trial, I have two IVs (prime and target) and a DV (RT). To be clear, every subject is randomly assigned to a prime and a target on each trial, so each subject sees every possible combination of primes and targets several times. Trials on which subjects responded incorrectly or took too long to respond have been eliminated already, so I have an uneven number of trials remaining for each subject, but the average is about 175.
Here are my variables:
id- a numeric value used to identify each subject. I created this variable by encoding mturk identifiers that I was calling "subject" (i.e., encode subject, generate(id))
primenum- a numeric value (1, 2,or 3) identifying which prime was shown on that trial
targettypenum- a numeric value (1 or 2) identifying which target was shown on that trial
latency- this is my DV; it is the reaction time on that trial
After much trial and error, I used code that was suggested for a similar design on this forum. Here is the code I used and the corresponding output:
anova latency primenum/ primenum|id targettypenum / targettypenum|id primenum#targettypenum / primenum#targettypenum|id primenum#targettypenum id, repeated(primenum targettypenum) bse(id)
could not determine between-subject basic unit; use bseunit() option
r(422);
I subsequently tried replacing bse(id) with bseunit(id) and got the exact same output:
. anova latency primenum/ primenum|id targettypenum / targettypenum|id primenum#targettypenum / primenum#targettypenum|id primenum#targettypenum id, repeated(primenum targettypenum) bseunit(id)
could not determine between-subject basic unit; use bseunit() option
r(422);
I am using Stata/SE 12.0 for Windows (32-bit) on a Windows 7 Home Premium 64-bit operating system if that impacts your suggestions.
Does anyone have any advice? Please let me know if additional information is needed.
First, let me describe the nature of my data: I have 225 subjects who each completed 190 trials. In each trial, the subject is presented with a prime (1 of 3 possible primes), then given a target image to respond to (1 of 2 possible target images). I have recorded the response time (RT) for each trial. This is a within-subjects 3x2 design. That is, for each trial, I have two IVs (prime and target) and a DV (RT). To be clear, every subject is randomly assigned to a prime and a target on each trial, so each subject sees every possible combination of primes and targets several times. Trials on which subjects responded incorrectly or took too long to respond have been eliminated already, so I have an uneven number of trials remaining for each subject, but the average is about 175.
Here are my variables:
id- a numeric value used to identify each subject. I created this variable by encoding mturk identifiers that I was calling "subject" (i.e., encode subject, generate(id))
primenum- a numeric value (1, 2,or 3) identifying which prime was shown on that trial
targettypenum- a numeric value (1 or 2) identifying which target was shown on that trial
latency- this is my DV; it is the reaction time on that trial
After much trial and error, I used code that was suggested for a similar design on this forum. Here is the code I used and the corresponding output:
anova latency primenum/ primenum|id targettypenum / targettypenum|id primenum#targettypenum / primenum#targettypenum|id primenum#targettypenum id, repeated(primenum targettypenum) bse(id)
could not determine between-subject basic unit; use bseunit() option
r(422);
I subsequently tried replacing bse(id) with bseunit(id) and got the exact same output:
. anova latency primenum/ primenum|id targettypenum / targettypenum|id primenum#targettypenum / primenum#targettypenum|id primenum#targettypenum id, repeated(primenum targettypenum) bseunit(id)
could not determine between-subject basic unit; use bseunit() option
r(422);
I am using Stata/SE 12.0 for Windows (32-bit) on a Windows 7 Home Premium 64-bit operating system if that impacts your suggestions.
Does anyone have any advice? Please let me know if additional information is needed.
Comment