
Estou tentando compilar um PDF no texmaker com uma tabela do pacote semTable em R. Infelizmente, estou recebendo um erro ao fazer isso. Como sou um grande novato em LaTex, ficaria muito feliz com alguns conselhos sobre solução de problemas. Provavelmente é uma piada para pessoas habilidosas em LaTex. Aqui está o meu código, que reduzi para mostrar apenas as 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}
Desde já, obrigado!