Hallo Arne,
Can you explain about minimum number of nset, how many choice set should be there.
Can you explain about minimum number of nset, how many choice set should be there.
matrix levmat = 3,3,3 genfact, levels(levmat) matrix optout = J(1,3,1) matrix b = J(1,7,0) dcreate i.x1 i.x2 i.x3, nalt(2) nset(12) fixedalt(optout) bmat(b) asc(3) blockdes block, nblock(2) list, separator(3) abbreviate(16)
matrix levmat = 3,3,3 genfact, levels(levmat) matrix optout = J(1,3,1) matrix b = 0.5,1,0.5,1,0.5,1,-1 dcreate i.x1 i.x2 i.x3, nalt(2) nset(12) fixedalt(optout) bmat(b) asc(3) blockdes block, nblock(2) list, separator(3) abbreviate(16)
SHRIMP A | SHRIMP B | |
Origin | China | US |
Wild caught label | Yes | No |
Sustainable label | No | Yes |
Price | $7/pound | $9/pound |
matrix levmat = 2,2,2,4 genfact, levels(levmat) matrix b = J(1,15,0) dcreate i.x1 i.x2 i.x3 i.x4 i.x1#i.x4 i.x2#i.x4 i.x3#i.x4, nalt(2) nset(32) bmat(b)
clear matrix levmat = 2,2,3,3,3 genfact, levels(levmat) matrix b = J(1,8,0) dcreate i.x1 i.x2 i.x3 i.x4 i.x5, nalt(18) nset(6) bmat(b)
Comment