{smcl}
{* 26 April07}{...}
{hi:help truthtab}{right: ({browse "http://www.stata-journal.com/article.html?article=st0140":SJ8-1: st0140})}
{hline}

{title:Title}

{p2colset 5 17 19 2}{...}
{p2col :{hi:truthtab} {hline 2}}Display and save truth-table matrix{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 14 2} {cmd:truthtab} [{it:outcomevar} {it:configurations}]
 [{cmd:,}  {opt outsh:eet(filename)}]

	
{title:Description}

{pstd}
{cmd:truthtab} displays and (optionally) saves a truth-table matrix of all
configurations entered.  {cmd:truthtab} works after {cmd:fuzzy} and its related
stand-alone programs.  If no {it:outcomevar} or {it:configurations} are
specified, {cmd:truthtab} will use the last set of displayed configurations
(either from a call to {cmd:fuzzy} or a {cmd:settest()} stand-alone command:
{cmd:yvn}, {cmd:yvo}, {cmd:yvv}, {cmd:yavyb}, {cmd:cmvom}, or {cmd:mavmb}).
The configurations do not need to exist in the dataset, but their individual
single, capital letter versions must exist.
Also all configurations entered must be of equal length and be composed of
similar sets (i.e., must be "full" configurations).


{title:Option}

{p 4 8 2}
{opt outsheet(filename)} saves (and replaces) the truth-table matrix to the
specified file.  The {it:filename} should end in the desired output type
({cmd:.dta}, {cmd:.csv}, etc.).


{title:Examples}

{p 4 8 2}{cmd:. truthtab Y Abc aBc ABC}

{p 4 8 2}{cmd:. truthtab Y Abc aBc ABC, outsheet(C:\mytruthtab.csv)}

{p 4 8 2}{cmd:. fuzzy D A G F, settest(yvv) sigonly greater(col1)}{p_end}
{phang}{cmd:. truthtab}	

{p 4 8 2}{cmd:. fuzzy drink age grades friends, label(D A G F) settest(yvv) sigonly}{p_end}
{phang}{cmd:. yvn, greater(col1) last}{p_end}
{phang}{cmd:. truthtab}
{p_end}


{title:Also see}

{psee}
Article: {it:Stata Journal}, volume 8, number 1: {browse "http://www.stata-journal.com/article.html?article=st0140":st0140}
{p_end}
