Document Classes ⇒ Problems with ctable command
Problems with ctable command
I receive the runaway argument message, yet I can't find the flaw in my code. All constructive suggestions would be highly appreciative.
\documentclass{article}
\usepackage{ctable}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{document}
\ctable[caption = Difference-in-Differences Estimates of Kalamazoo Promise on College Choice, notespar, sideways]
{lcccccccc}
{Notes: Standard errors in parentheses: \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\) The models are linear probability specifications with standard errors that are clustered at the high school level.The sample used for estimation includes all ACT test takers from public high schools in Michigan with both valid scores and information on the set of school selected to receive score reports. The models include as regressors the scores on the four components of the ACT, high school grade point average, a linear trend, a quadratic trend, the percentage of the high school that is eligible for free lunch, the percentage of the high school that is black, the percentage of the high school that is white, the percentage of the high school that is Hispanic, the pupil-to-teacher ratio, and the number of full time equivalent teachers. The dependent variables are binary variables that assume a value of one if the test taker includes the institution in the choice set. The following abbreviations are used: U of M = University of Michigan-Ann Arbor, MI St. = Michigan State University, W. MI = Western Michigan University, Pub. U. in MI = Public Universities in Michigan, Wayne St. = Wayne State University, MI Tech = Michigan Institute of Technology, KVCC = Kalamazoo Valley Community College, Flagships = University of Michigan-Ann Arbor and Michigan State University. The Pre-Promise Mean is the portion of test takers from Kalamazoo Promise High Schools in the years before the program who submitted a score report to the institution(s) listed in the column headings.}{
\toprule
&\multicolumn{1}{c}{U. of M.}&\multicolumn{1}{c}{MI St.}&\multicolumn{1}{c}{W. MI}&\multicolumn{1}{c}{Pub. U. in MI}&\multicolumn{1}{c}{Wayne St.}&\multicolumn{1}{c}{MI Tech}&\multicolumn{1}{c}{KVCC}&\multicolumn{1}{c}{Flagships}\\
\midrule
Post& 0.0424\sym{***}& 0.0496\sym{***}& 0.0204\sym{***}& 0.00176 & -0.0149\sym{***}& 0.00659\sym{**} & 0.000457 & 0.0330\sym{***}\\
& (0.00358) & (0.00423) & (0.00389) & (0.00372) & (0.00318) & (0.00211) & (0.00151) & (0.00292) \\
\addlinespace
Kalamazoo Promise& 0.000599 & -0.0293 & 0.348\sym{***}& -0.0402 & -0.142\sym{***}& -0.0220\sym{***}& 0.161\sym{***}& -0.0172 \\
& (0.00692) & (0.0198) & (0.0219) & (0.0244) & (0.0132) & (0.00393) & (0.00540) & (0.0150) \\
\addlinespace
Post$\times$Kalamazoo Promise & 0.0784\sym{***}& 0.125\sym{***}& 0.122\sym{***}& 0.0634\sym{***}& 0.0654\sym{***}& -0.00867 & 0.0238\sym{***}& 0.113\sym{***}\\
& (0.00938) & (0.0236) & (0.00869) & (0.00772) & (0.0190) & (0.00880) & (0.00535) & (0.00604) \\
\midrule
Pre-Promise Mean & .32 & .36 & .52 & .77 & .02 & .03 & .16 & .16 \\
$R^{2}$ & 0.139 & 0.046 & 0.020 & 0.006 & 0.054 & 0.040 & 0.018 & 0.083 \\
$N$ & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 \\ \bottomrule}
\ctable[caption=Difference-in-Differences Estimates of Kalamazoo Promise on College Choice: Race Categories and Income Categories Included, notespar,sideways]{lcccccccc}{Notes: Standard errors in parentheses: \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\) The models are linear probability specifications with standard errors that are clustered at the high school level. The sample used for estimation includes all ACT test takers from public high schools in Michigan with valid scores, information on the set of school selected to receive score reports, non-missing race and income data. The models include as regressors the scores on the four components of the ACT, high school grade point average, income category indicators, race and ethnicity indicators, a linear trend, a quadratic trend, the percentage of the high school that is eligible for free lunch, the percentage of the high school that is black, the percentage of the high school that is white, the percentage of the high school that is Hispanic, the pupil-to-teacher ratio, and the number of full time equivalent teachers. The dependent variables are binary variables that assume a value of one if the test taker includes the institution in the choice set. The following abbreviations are used: U of M = University of Michigan-Ann Arbor, MI St. = Michigan State University, W. MI = Western Michigan University, Pub. U. in MI = Public Universities in Michigan, Wayne St. = Wayne State University, MI Tech = Michigan Institute of Technology, KVCC = Kalamazoo Valley Community College, Flagships = University of Michigan-Ann Arbor and Michigan State University. The Pre-Promise Mean is the portion of test takers from Kalamazoo Promise High Schools in the years before the program who submitted a score report to the institution(s) listed in the column headings.}{\toprule
& \multicolumn{1}{c}{U. of M.}&\multicolumn{1}{c}{MI St.}&\multicolumn{1}{c}{W. MI}&\multicolumn{1}{c}{Pub. U. in MI}&\multicolumn{1}{c}{Wayne St.}&\multicolumn{1}{c}{MI Tech}&\multicolumn{1}{c}{KVCC}&\multicolumn{1}{c}{Flagships} \\
\midrule
Post & 0.0423\sym{***}& 0.0487\sym{***}& 0.0195\sym{***}& 0.00209 & -0.0139\sym{***}& 0.00666\sym{**} & 0.000501 & 0.0326\sym{***}\\
& (0.00353) & (0.00420) & (0.00385) & (0.00370) & (0.00310) & (0.00210) & (0.00151) & (0.00288) \\
\addlinespace
Kalamazoo Promise& 0.00699 & -0.0299 & 0.336\sym{***}& -0.0437 & -0.137\sym{***}& -0.0220\sym{***}& 0.160\sym{***}& -0.0144 \\
& (0.00609) & (0.0200) & (0.0219) & (0.0231) & (0.0125) & (0.00374) & (0.00541) & (0.0148) \\
\addlinespace
Post$\times$Kalamazoo Promise& 0.0808\sym{***}& 0.127\sym{***}& 0.120\sym{***}& 0.0625\sym{***}& 0.0640\sym{***}& -0.00868 & 0.0235\sym{***}& 0.115\sym{***}\\
& (0.0101) & (0.0223) & (0.0103) & (0.00997) & (0.0187) & (0.00827) & (0.00502) & (0.00689) \\
\midrule
Pre-Promise Mean & .32 & .36 & .52 & .77 & .02 & .03 & .16 & .16 \\
\(R^{2}\) & 0.145 & 0.050 & 0.026 & 0.008 & 0.073 & 0.041 & 0.019 & 0.088 \\
\(N\) & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 \\ \bottomrule}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Problems with ctable command
Code: Select all
\documentclass{article}
\usepackage{ctable}
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{document}
\ctable[caption = Difference-in-Differences Estimates of Kalamazoo Promise on College Choice, notespar, sideways]%
{lcccccccc}
{Notes: Standard errors in parentheses: \sym{*} \(p<0.05\), \sym{**} \(p<0.01\), \sym{***} \(p<0.001\) The models are linear probability specifications with standard errors that are clustered at the high school level.The sample used for estimation includes all ACT test takers from public high schools in Michigan with both valid scores and information on the set of school selected to receive score reports. The models include as regressors the scores on the four components of the ACT, high school grade point average, a linear trend, a quadratic trend, the percentage of the high school that is eligible for free lunch, the percentage of the high school that is black, the percentage of the high school that is white, the percentage of the high school that is Hispanic, the pupil-to-teacher ratio, and the number of full time equivalent teachers. The dependent variables are binary variables that assume a value of one if the test taker includes the institution in the choice set. The following abbreviations are used: U of M = University of Michigan-Ann Arbor, MI St. = Michigan State University, W. MI = Western Michigan University, Pub. U. in MI = Public Universities in Michigan, Wayne St. = Wayne State University, MI Tech = Michigan Institute of Technology, KVCC = Kalamazoo Valley Community College, Flagships = University of Michigan-Ann Arbor and Michigan State University. The Pre-Promise Mean is the portion of test takers from Kalamazoo Promise High Schools in the years before the program who submitted a score report to the institution(s) listed in the column headings.}%
{\toprule
&\multicolumn{1}{c}{U. of M.}&\multicolumn{1}{c}{MI St.}&\multicolumn{1}{c}{W. MI}&\multicolumn{1}{c}{Pub. U. in MI}&\multicolumn{1}{c}{Wayne St.}&\multicolumn{1}{c}{MI Tech}&\multicolumn{1}{c}{KVCC}&\multicolumn{1}{c}{Flagships}\\
\midrule
Post& 0.0424\sym{***}& 0.0496\sym{***}& 0.0204\sym{***}& 0.00176 & -0.0149\sym{***}& 0.00659\sym{**} & 0.000457 & 0.0330\sym{***}\\
& (0.00358) & (0.00423) & (0.00389) & (0.00372) & (0.00318) & (0.00211) & (0.00151) & (0.00292) \\
\addlinespace
Kalamazoo Promise& 0.000599 & -0.0293 & 0.348\sym{***}& -0.0402 & -0.142\sym{***}& -0.0220\sym{***}& 0.161\sym{***}& -0.0172 \\
& (0.00692) & (0.0198) & (0.0219) & (0.0244) & (0.0132) & (0.00393) & (0.00540) & (0.0150) \\
\addlinespace
%(Before commenting it out, this blank line was causing several errors)
Post$\times$Kalamazoo Promise & 0.0784\sym{***}& 0.125\sym{***}& 0.122\sym{***}& 0.0634\sym{***}& 0.0654\sym{***}& -0.00867 & 0.0238\sym{***}& 0.113\sym{***}\\
& (0.00938) & (0.0236) & (0.00869) & (0.00772) & (0.0190) & (0.00880) & (0.00535) & (0.00604) \\
\midrule
%(Before commenting it out, this blank line was causiing several errors)
Pre-Promise Mean & .32 & .36 & .52 & .77 & .02 & .03 & .16 & .16 \\
$R^{2}$ & 0.139 & 0.046 & 0.020 & 0.006 & 0.054 & 0.040 & 0.018 & 0.083 \\
$N$ & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 \\ \bottomrule}
\ctable[caption=Difference-in-Differences Estimates of Kalamazoo Promise on College Choice: Race Categories and Income Categories Included, notespar,sideways]%
{lcccccccc}%
{Notes: Standard errors in parentheses: \sym{*} \(p<0.05\)
, \sym{**} \(p<0.01\), \sym{***} \(p<0.001\) The models are linear probability specifications with standard errors that are clustered at the high school level. The sample used for estimation includes all ACT test takers from public high schools in Michigan with valid scores, information on the set of school selected to receive score reports, non-missing race and income data. The models include as regressors the scores on the four components of the ACT, high school grade point average, income category indicators, race and ethnicity indicators, a linear trend, a quadratic trend, the percentage of the high school that is eligible for free lunch, the percentage of the high school that is black, the percentage of the high school that is white, the percentage of the high school that is Hispanic, the pupil-to-teacher ratio, and the number of full time equivalent teachers. The dependent variables are binary variables that assume a value of one if the test taker includes the institution in the choice set. The following abbreviations are used: U of M = University of Michigan-Ann Arbor, MI St. = Michigan State University, W. MI = Western Michigan University, Pub. U. in MI = Public Universities in Michigan, Wayne St. = Wayne State University, MI Tech = Michigan Institute of Technology, KVCC = Kalamazoo Valley Community College, Flagships = University of Michigan-Ann Arbor and Michigan State University. The Pre-Promise Mean is the portion of test takers from Kalamazoo Promise High Schools in the years before the program who submitted a score report to the institution(s) listed in the column headings.}%
{\toprule
& \multicolumn{1}{c}{U. of M.}&\multicolumn{1}{c}{MI St.}&\multicolumn{1}{c}{W. MI}&\multicolumn{1}{c}{Pub. U. in MI}&\multicolumn{1}{c}{Wayne St.}&\multicolumn{1}{c}{MI Tech}&\multicolumn{1}{c}{KVCC}&\multicolumn{1}{c}{Flagships} \\
\midrule
Post & 0.0423\sym{***}& 0.0487\sym{***}& 0.0195\sym{***}& 0.00209 & -0.0139\sym{***}& 0.00666\sym{**} & 0.000501 & 0.0326\sym{***}\\
& (0.00353) & (0.00420) & (0.00385) & (0.00370) & (0.00310) & (0.00210) & (0.00151) & (0.00288) \\
\addlinespace
Kalamazoo Promise& 0.00699 & -0.0299 & 0.336\sym{***}& -0.0437 & -0.137\sym{***}& -0.0220\sym{***}& 0.160\sym{***}& -0.0144 \\
& (0.00609) & (0.0200) & (0.0219) & (0.0231) & (0.0125) & (0.00374) & (0.00541) & (0.0148) \\
\addlinespace
Post$\times$Kalamazoo Promise& 0.0808\sym{***}& 0.127\sym{***}& 0.120\sym{***}& 0.0625\sym{***}& 0.0640\sym{***}& -0.00868 & 0.0235\sym{***}& 0.115\sym{***}\\
& (0.0101) & (0.0223) & (0.0103) & (0.00997) & (0.0187) & (0.00827) & (0.00502) & (0.00689) \\
\midrule
Pre-Promise Mean & .32 & .36 & .52 & .77 & .02 & .03 & .16 & .16 \\
\(R^{2}\) & 0.145 & 0.050 & 0.026 & 0.008 & 0.073 & 0.041 & 0.019 & 0.088 \\
\(N\) & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 & 430702 \\ \bottomrule}
\end{document}- Attachments
-
- ctabletest.pdf
- (41.17 KiB) Downloaded 433 times