从 semTable 包编译 latex-table 时出错

从 semTable 包编译 latex-table 时出错

我正在尝试使用 R 中 semTable 包中的表格在 texmaker 中编译 PDF。不幸的是,我在执行此操作时遇到了错误。由于我是 LaTex 的新手,因此我非常乐意提供一些故障排除建议。对于熟练的 LaTex 用户来说,这可能是一个笑话。这是我的代码,我将其缩减为仅显示相关部分:

\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}

提前致谢!

相关内容