从semTable包编译乳胶表时出错

时间:2020-09-04 12:31:39

标签: r latex pdflatex texmaker

我试图用R中semTable-package中的表在texmaker中编译PDF。不幸的是,这样做时出现错误。由于我是LaTex的佼佼者,因此我很乐意为您提供一些建议。对于熟练的LaTex-er来说这可能是个玩笑。这是我的代码,我简化为仅显示相关部分:

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

谢谢!

0 个答案:

没有答案