I am trying to calculate the total number of possible combinations of a set of variables. The calculation is complicated by the fact that not every variable behaves the same way.
Here are the details. I have 5 different trait types. Each trait type has a different number of possible traits. Some traits can occur only once per observation, some can occur once or twice, and some might not occur at all. Here is an example of the data set:
Here are the details. I have 5 different trait types. Each trait type has a different number of possible traits. Some traits can occur only once per observation, some can occur once or twice, and some might not occur at all. Here is an example of the data set:
- Trait1 (hair color): 3 possible states; 1 state MUST be present in all observations
- Trait2 (talent type): 3 possible states; 1 or 2 states MUST be present in all observations
- Trait3 (location): 2 possible states; 1 state MUST be present in all observations
- Trait4 (disability): 3 possible states; 1 state MAY be present in all observations (so Trait4 may be absent)
- Trait5 (marital status): 2 possible states; 1 state MUST be present in all observations