
Estoy intentando compilar un PDF en texmaker con una tabla del paquete semTable en R. Desafortunadamente, recibo un error al hacerlo. Dado que soy un gran novato con LaTex, estaría muy feliz de recibir algunos consejos para solucionar problemas. Probablemente sea una broma para los expertos en LaTex. Aquí está mi código, que reduje para mostrar solo las partes relevantes:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{@{}r*{4}{S[
input-symbols = ( ) +,
group-digits = false,
table-number-alignment = center,
%table-space-text-pre = (,
table-align-text-pre = false,
table-align-text-post = false,
table-space-text-post = {***},
parse-units = false]}@{}}
& \multicolumn{4}{c}{Model}\tabularnewline \hline
& \multicolumn{1}{c}{Estimate}& \multicolumn{1}{c}{Std. Err.}& \multicolumn{1}{c}{z}& \multicolumn{1}{c}{p}\tabularnewline\hline
& \multicolumn{4}{c}{\underline{Factor Loadings}}\tabularnewline \multicolumn{1}{l}{\underline{ABU}}\tabularnewline
NoSKMSM& 1.00$^+$& & & \tabularnewline
KSMChrMX& 0.69& 0.03& 25.78& .000\tabularnewline
KSMSevMx& 0.68& 0.02& 31.20& .000\tabularnewline
\multicolumn{1}{l}{\underline{NEG}}\tabularnewline
NoSNeg& 1.00$^+$& & & \tabularnewline
NegChrMX& 0.98& 0.03& 31.03& .000\tabularnewline
NegSevMx& 1.11& 0.05& 23.19& .000\tabularnewline
& \multicolumn{4}{c}{\underline{Fit Indices}}\tabularnewline
$\chi^{2}(\mathrm{df})$& 7944.00& & & \tabularnewline
CFI& 0.55& & & \tabularnewline
RMSEA& 0.19& & & \tabularnewline
SRMR& 0.16& & & \tabularnewline
Scaled $\chi^{2}(\mathrm{df})$& 2872.83(302)& & & .000\tabularnewline
\hline\multicolumn{5}{l}{$^+$Fixed parameter}\tabularnewline
\end{tabular}
\end{document}
¡Gracias de antemano!