\documentclass[12pt]{article}
\usepackage{multirow}
\newcommand\ml[1]{\multicolumn{1}{|l|}{#1}}
\newcommand\mcc[1]{\multicolumn{2}{c}{#1}}
\begin{document}
\begin{center}
\renewcommand\arraystretch{1.3}
\begin{tabular}{lc|c|c|}
\mcc{} & \mcc{Suspect 2} \\
\cline{3-4}
& & Quiet & Fink \\
\cline{2-4}
\multirow{2}{*}{Suspect 1}
& \ml{Quiet} & 4,4 & 0,6 \\
\cline{2-4}
& \ml{Fink} & 6,0 & 2,2 \\
\cline{2-4}
\end{tabular}
\end{center}
\end{document}
edit: as suggested CarLaTeX in her comment below, table is now stretched by factor 1.3.
Just for fun: matrices that auto-create their entries.
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}[auto matrix/.style={matrix of nodes,
draw,thick,inner sep=0pt,
nodes in empty cells,column sep=-0.2pt,row sep=-0.2pt,
cells={nodes={minimum width=1.9em,minimum height=1.9em,
draw,very thin,anchor=center,fill=white,
execute at begin node={%
$\vphantom{x_|}\ifnum\the\pgfmatrixcurrentrow<4
\ifnum\the\pgfmatrixcurrentcolumn<4
{#1}^{\the\pgfmatrixcurrentrow}_{\the\pgfmatrixcurrentcolumn}
\else
\ifnum\the\pgfmatrixcurrentcolumn=5
{#1}^{\the\pgfmatrixcurrentrow}_{N}
\fi
\fi
\else
\ifnum\the\pgfmatrixcurrentrow=5
\ifnum\the\pgfmatrixcurrentcolumn<4
{#1}^{T}_{\the\pgfmatrixcurrentcolumn}
\else
\ifnum\the\pgfmatrixcurrentcolumn=5
{#1}^{T}_{N}
\fi
\fi
\fi
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=14
\cdots
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=41
\vdots
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=44
\ddots
\fi$
}
}}}]
\matrix[auto matrix=z,xshift=3em,yshift=3em](matz){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\matrix[auto matrix=y,xshift=1.5em,yshift=1.5em](maty){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\matrix[auto matrix=x](matx){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\draw[thick,-stealth] ([xshift=1ex]matx.south east) -- ([xshift=1ex]matz.south east)
node[midway,below] {$D$};
\draw[thick,-stealth] ([yshift=-1ex]matx.south west) --
([yshift=-1ex]matx.south east) node[midway,below] {joints};
\draw[thick,-stealth] ([xshift=-1ex]matx.north west)
-- ([xshift=-1ex]matx.south west) node[midway,above,rotate=90] {time};
\end{tikzpicture}
\end{document}
With a more linearized treatment of the cases (certainly not the optimum).
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}[auto matrix/.style={matrix of nodes,
draw,thick,inner sep=0pt,
nodes in empty cells,column sep=-0.2pt,row sep=-0.2pt,
cells={nodes={minimum width=1.9em,minimum height=1.9em,
draw,very thin,anchor=center,fill=white,
execute at begin node={%
$\vphantom{x_1^1}
\pgfmathtruncatemacro{\itest}{sign(4-\the\pgfmatrixcurrentcolumn)*sign(4-\the\pgfmatrixcurrentrow)}
\unless\ifnum\itest=0
{#1}^{\myrowindex{\the\pgfmatrixcurrentrow}}_{\mycolindex{\the\pgfmatrixcurrentcolumn}}
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=14
\cdots
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=41
\vdots
\fi
\ifnum\the\pgfmatrixcurrentrow\the\pgfmatrixcurrentcolumn=44
\ddots
\fi
$}
}}}]
\newcommand{\mycolindex}[1]{\ifnum#1=5 N\else #1\fi}
\newcommand{\myrowindex}[1]{\ifnum#1=5 T\else #1\fi}
\matrix[auto matrix=z,xshift=3em,yshift=3em](matz){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\matrix[auto matrix=y,xshift=1.5em,yshift=1.5em](maty){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\matrix[auto matrix=x](matx){
& & & & \\
& & & & \\
& & & & \\
& & & & \\
& & & & \\
};
\draw[thick,-stealth] ([xshift=1ex]matx.south east) -- ([xshift=1ex]matz.south east)
node[midway,below] {$D$};
\draw[thick,-stealth] ([yshift=-1ex]matx.south west) --
([yshift=-1ex]matx.south east) node[midway,below] {joints};
\draw[thick,-stealth] ([xshift=-1ex]matx.north west)
-- ([xshift=-1ex]matx.south west) node[midway,above,rotate=90] {time};
\end{tikzpicture}
\end{document}
Best Answer
A .sty file is a "package". Since the
sgame
package (which meanssgame.sty
and accompanying documentation) resides at CTAN.org, there is a good chance that your LaTeX installation will automatically know how to download and access it merely by placing\usepackage{sgame}
in your document preamble.