This is cross-posted on StackExchange, but as it has to do with statistics, I thought I'd try here.

I'm trying to analyze experimental data with one between-subjects factor (`rank`) and two within-subjects factors (`cost`,`msg`) using the `ez` package. Participants were randomly assigned to both `cost` and `msg` at two points in time, so theoretically they could have the same combination of `cost` and `msg` at both points in time. `ezDesign` indicates that **my data is balanced with no missing values.**

Suppose my dataset `ez_data` looks like this:

```
     id choice_num choice        msg           cost   product            rank id_r
1.1   1    1      1 Provincial      Same cost   Cleaner Least important  1.1
2.1   2    1      1    No norm More expensive   Cleaner  Most important  2.1
3.1   3    1      1    No norm      Same cost      Soap Least important  3.1
4.1   4    1      1       Norm      Same cost    Coffee  Most important  4.1
5.1   5    1      1 Provincial      Same cost      Soap  Most important  5.1
6.1   6    1      1    No norm      Same cost Chocolate  Most important  6.1
7.1   7    1      1 Provincial      Same cost   Cleaner  Most important  7.1
8.1   8    1      0 Provincial      Same cost    Coffee Least important  8.1
9.1   9    1      1 Provincial      Same cost   Cleaner Least important  9.1
10.1 10    1      1       Norm More expensive Chocolate  Most important 10.1
11.1 11    1      1       Norm      Same cost      Soap  Most important 11.1
12.1 12    1      0 Provincial      Same cost    Coffee  Most important 12.1
13.1 13    1      1       Norm      Same cost      Soap  Most important 13.1
14.1 14    1      1 Provincial      Same cost      Soap Least important 14.1
15.1 15    1      0       Norm More expensive    Coffee  Most important 15.1
16.1 16    1      1 Provincial      Same cost   Cleaner Least important 16.1
17.1 17    1      1    No norm More expensive Chocolate Least important 17.1
18.1 18    1      0 Provincial More expensive      Soap Least important 18.1
19.1 19    1      1       Norm More expensive Chocolate  Most important 19.1
20.1 20    1      1 Provincial      Same cost   Cleaner Least important 20.1

```

Based on the comments [here](https://groups.google.com/forum/#!topic/ez4r/-2hjt8eiULc), I've created a new ID variable that concatenates the `choice_num` with the `id` variable so that there are no repeated values for the labels for "id" across the different levels of the factors.

Then, I simply run the command:

```
ezANOVA(data=ez_data, dv=.(choice), wid=.(id_r), within=.(cost,msg), between=.(rank), type=3)

```

But this still yields the error:

```
Error in ezANOVA_main(data = data, dv = dv, wid = wid, within = within,  : 
  One or more cells is missing data. Try using ezDesign() to check your data.

```

Thoughts?