search for: multicolumn

Displaying 20 results from an estimated 61 matches for "multicolumn".

2006 Feb 12
1
Mathematical typesetting of column heads using the latex (Hmisc) function
...Sweave: % latex.default(anova(e7.lmer1, e7.lmer2), file = "e7lmer12.tex", rowname = c("nonlinear", "linear"), longtable = FALSE, dcolumn = T, booktabs = T, table.env = F) % \newcolumntype{.}{D{.}{.}{-1}} \begin{center} \begin{tabular}{l.......}\toprule \multicolumn{1}{l}{anova}& \multicolumn{1}{c}{Df}& \multicolumn{1}{c}{AIC}& \multicolumn{1}{c}{BIC}& \multicolumn{1}{c}{logLik}& \multicolumn{1}{c}{Chisq}& \multicolumn{1}{c}{Chi Df}& \multicolumn{1}{c}{Pr(>Chisq)} <snip> I would like it to produce \newcolumntype{.}{D{.}{....
2008 Dec 03
0
Hmisc latex() and Rcmdr numSummary() percentage issues
...age signs `\%'. Would there be a way to automatise this? Thank you, Liviu ######## Uncompilable LaTeX ######## % latex.default(as.table(.numSummary$table), cdec = c(2), file = "", title = "") % \begin{table}[!tbp] \begin{center} \begin{tabular}{lrrrrrrr}\hline\hline \multicolumn{1}{l}{}& \multicolumn{1}{c}{mean}& \multicolumn{1}{c}{sd}& \multicolumn{1}{c}{0%}& \multicolumn{1}{c}{25%}& \multicolumn{1}{c}{50%}& \multicolumn{1}{c}{75%}& \multicolumn{1}{c}{100%} \\ \hline &$31.37$&$20.41$&$10.6$&$16.9$&$23.7$&$39$&$84.5$\...
2015 Nov 25
2
stargazer
...by stargazer v.5.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu % Date and time: lu., nov. 16, 2015 - 10:55:58 \begin{table}[!htbp] \centering \caption{} \label{} \begin{tabular}{@{\extracolsep{5pt}}lccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] Statistic & \multicolumn{1}{c}{N} & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\ \hline \\[-1.8ex] rating & 30 & 64.633 & 12.173 & 40 & 85 \\ complaints & 30 & 66.600 & 13.315 & 37 & 90 \\ privil...
2007 Jan 10
1
2 problems with latex.table (quantreg package) - reproducible
...#Fehler in latex.table(tab, table.env = FALSE, caption = "nothing") : # you must have table.env=TRUE if caption is given The second problem is, that - when using latex.table to produce a tabular within a table environment - I would like to specify cgroup with only one value - one multicolumn being a heading for both columns in the table. But I'm not able to produce latex-compilable code: latex.table(tab,cgroup="v2",caption="my table") gives me the following latex code: \begin{table}[hptb] \begin{center} \begin{tabular}{|l||c|c|} \hline \multicolumn{1}{|l||}{\b...
2015 Nov 16
2
stargazer
...le created by stargazer v.5.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu % Date and time: lu., nov. 16, 2015 - 10:55:58 \begin{table}[!htbp] \centering \caption{} \label{} \begin{tabular}{@{\extracolsep{5pt}}lccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] Statistic & \multicolumn{1}{c}{N} & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\ \hline \\[-1.8ex] rating & 30 & 64.633 & 12.173 & 40 & 85 \\ complaints & 30 & 66.600 & 13.315 & 37 & 90 \\ privileges &a...
2005 Aug 30
1
Convert ftable to latex?
...)$row.vars$votcat, n.rgroup=c(6,6,6),file="") % latex.default(ftab, cgroup = attributes(ftab)$col.vars$voicetype, rgroup = attributes(ftab)$row.vars$votcat, n.rgroup = c(6, 6, 6), file = "") % \begin{table}[!tbp] \begin{center} \begin{tabular}{lclcl}\hline\hline \multicolumn{1}{c}{\bfseries Voiced}& \multicolumn{1}{c}{\bfseries }& \multicolumn{1}{c}{\bfseries Voiceless unaspirated}& \multicolumn{1}{c}{\bfseries }& \multicolumn{1}{c}{\bfseries Voiceless aspirated} \\ \cline{1-5} \multicolumn{1}{c}{}& \multicolumn{1}{c}{}& \multicolumn{1}{c}{}&amp...
2003 Jun 13
1
problem with latex of object summary reverse
...col.just = col.just, numeric.dollar = FALSE, insert.bottom = legend, rowname = lab, dcolumn = dcolumn, extracolheads = extracolheads, extracolsize = Nsize, ...) % \begin{table}[!tbp] \begin{center} \caption{Descriptive Statistics by Species\label{a}} \begin{tabular}{lccc}\hline\hline \multicolumn{1}{l}{}& \multicolumn{1}{c}{setosa}& \multicolumn{1}{c}{versicolor}& \multicolumn{1}{c}{virginica} \\ \multicolumn{1}{l}{{\scriptsize %%%% wrong $N=50$}}&\multicolumn{1}{c}{{\scriptsize $N=50$}}&\multicolumn{1}{c}{{\scriptsize $N=50$}}\\ \hline Sepal.Length&{\scri...
2009 Apr 23
0
latex(Hmisc): cgroup + rownames shifts column names
..., col3=4:7) latex(test.df, file="", table.env=FALSE, center="none") % latex.default(test.df, file = "", table.env = FALSE, center = "none") % \begin{tabular}{lrrr} \hline\hline %% Comment added by ME -- this next line is the one that is fine without cgroup \multicolumn{1}{l}{test.df}& \multicolumn{1}{c}{col1}& \multicolumn{1}{c}{col2}& \multicolumn{1}{c}{col3} \tabularnewline \hline a&$1$&$4$&$4$\tabularnewline b&$2$&$3$&$5$\tabularnewline c&$3$&$2$&$6$\tabularnewline d&$4$&$1$&$7$\tabularnewline \hline...
2009 May 07
0
Hmisc::latex() help
...umn = TRUE, cdec = c(0, 0, 0, 0, 2, 0, 2, 0, 2)) However, na.blank and cdec make no difference, producing: \newcolumntype{.}{D{.}{.}{-1}} \begin{table}[H] \caption{11000000\label{info}} \begin{center} \begin{tabular}{lD{.}{.}{-1}D{.}{.}{-1}D{.}{.}{-1}D{.}{.}{-1}D{.}{.} {-1}llll}\toprule \multicolumn{1}{l}{necklace}&\multicolumn{1}{c}{originalPosition}& \multicolumn{1}{c}{same}&\multicolumn{1}{c}{run}&\multicolumn{1}{c} {surprise1}&\multicolumn{1}{c}{pair}&\multicolumn{1}{c}{surprise2}& \multicolumn{1}{c}{triple}&\multicolumn{1}{c}{surprise3}& \multicolum...
2010 Jul 13
1
latex table question
...ear", "Second Run of the Year", "Third Run of the Year", "Fourth Run of the Year", "Last Run of the Year"), row.names = c(NA, 4L), class = "data.frame") @ \begin{landscape} \begin{table}[!tbp] \begin{center} \begin{tabular}{llllll}\hline\hline \multicolumn{1}{c}{IDDate}& \multicolumn{1}{c}{First Run of the Year}& \multicolumn{1}{c}{Second Run of the Year}& \multicolumn{1}{c}{Third Run of the Year}& \multicolumn{1}{c}{Fourth Run of the Year}& \multicolumn{1}{c}{Last Run of the Year}\tabularnewline \hline 1&3/12/2010&33 (119...
2013 Mar 15
2
latex(test, collabel=) returns wrong latex code?
...th the rows and the columns. In using the following code, latex chokes when I include collabel='Vote' but it's fine without it. The code below prouces the latex code further below. I'm confused by this, because it looks like it's creating two bits of text for each instance of \multicolumn. Is that really allowed in \multicolumn? Could someone clarify? Thank you! Yours, SJK library(Hmisc) test<-as.table(matrix(c(50,50,50,50), ncol=2)) latex(test, rowlabel='Gender',collabel='Vote', file='') % latex.default(test, rowlabel = "Gender", collabel =...
2006 May 03
2
Outreg-like command?
It would be nice to have something like stata's outreg that lets regression output go into a form like Specification (1) Specification (2) Var 1 coef(1,1) coef(1,2) se(1,1) se(1,2) Var 2 coef(2,1) coef(2,2) se(2,1) se(2,2) I don't think this can be done in xtable? Thomas Davidoff Assistant Professor Haas School of Business UC Berkeley Berkeley, CA 94618 Phone: (510)
2006 Mar 13
1
Formatting an anova table using latex
..., rowheads = NULL, colheads = NULL, colnamesTexCmd = c("", "df", "aic", "bic", "logl", "chisq", "chisqdf", "prchisq")) % \newcolumntype{.}{D{.}{.}{-1}} \begin{center} \begin{tabular}{l.......}\toprule \multicolumn{1}{l}{\ }& \multicolumn{1}{c}{\df }& \multicolumn{1}{c}{\aic }& \multicolumn{1}{c}{\bic }& \multicolumn{1}{c}{\logl }& \multicolumn{1}{c}{\chisq }& \multicolumn{1}{c}{\chisqdf }& \multicolumn{1}{c}{\prchisq } \\ \midrule \baR raw1.lmer0 & 4 & 434 &...
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
...ol.just = col.just, numeric.dollar = FALSE, insert.bottom = legend, rowname = lab, dcolumn = dcolumn, extracolheads = extracolheads, extracolsize = Nsize, ...) % \begin{table}[!tbp] \caption{Descriptive Statistics by treatment\label{g}} \begin{center} \begin{tabular}{lccc}\hline\hline \multicolumn{1}{l}{}&\multicolumn{1}{c}{Drug}&\multicolumn{1}{c}{Placebo}&\multicolumn{1}{c}{Test Statistic}\tabularnewline &\multicolumn{1}{c}{{\scriptsize $N=263$}}&\multicolumn{1}{c}{{\scriptsize $N=237$}}&\tabularnewline \hline age&1&1&4\tabularnewline sex~:~m&6&...
2004 Jan 26
0
Significances of Korrelations and Sweave
...zip (4 KB), just run test.r. 2. About Sweave, I love it! But one thing annoys me: Is it possible that it doesn't insert \begin{Schunk}...\end{Schunk}? Some of my code reads like: \ctable[ caption={Deskriptive Statistik}, label=tab:ErgebnisseDeskriptiveStatistik, pos=!tbp ]{lrrrddd} {} { \FL \multicolumn{1}{l}{} & \multicolumn{1}{r}{$N$} & \multicolumn{1}{r}{Min} & \multicolumn{1}{r}{Max} & \multicolumn{1}{r}{$M$} & \multicolumn{1}{r}{$SD$} & \multicolumn{1}{r}{Varianz} \ML <<echo=false,results=tex>>= for (i in 3:ncol(scales...
2008 Feb 26
2
Custom LaTeX tables
...do some tables by hand since I have not found out how I can customize the latex tables produced by R further (I mainly use xtable()). Like for instance, I have a table which needs an extra row every few rows as a group header and sometimes I want some extra horizontal lines in the table and also a multicolumn heading. How do you guys cope with such cases, do you set the table by hand in the end or have you found a neat way to deal with this? Many thanks and regards, Werner
2009 Aug 19
2
[Hmisc] latex() with ctable=T inserting unwanted empty line in .tex file when used on summary.formula(method="reverse") object
...[3] "\\ctable[ caption={Descriptive Statistics by b}, label=summary, pos=!tbp, ]{lccc} {\\tnote[]{\\noindent {\\scriptsize $a$\\ }{$b$\\ }{\\scriptsize $c$\\ } represent the lower quartile $a$, the median $b$, and the upper quartile $c$\\ for continuous variables.}} {\\FL\\multicolumn{1}{l}{}&\\multicolumn{1}{c}{bad}&\\multicolumn{1}{c}{good}&\\multicolumn{1}{c}{ugly}\\NN" [4] ""...
2008 Jul 03
1
*** significance with xtable
Hello everybody, i used xtable to get some latex output, which worked pretty well with my latex document. But somewhere i missed the part where they explain how to get these nice significance indicating *** into my latex table. it just stops right after Pr(> |t|) thanks in advance matthias
2007 May 05
1
How to latex tables?
Suppose I have a table constructed from structable or simply just an object of class table. How can I convert it to a latex object? I looked in RSiteSearch, but only found info about matrices or data frames. Steve For example, here is a table t2 > str(t2) table [1:2, 1:2, 1:2] 6 8 594 592 57 ... - attr(*, "dimnames")=List of 3 ..$ Hospital : chr [1:2] "A"
2006 Dec 14
5
Nicely formatted tables
If I use latex(summary(X)) where X is a data frame with four variables I get something like Rainfall Education Popden Nonwhite Min. :10.00 Min. : 9.00 Min. :1441 Min. : 0.80 1st Qu.:32.75 1st Qu.:10.40 1st Qu.:3104 1st Qu.: 4.95 Median :38.00 Median :11.05 Median :3567 Median :10.40 Mean :37.37 Mean :10.97 Mean :3866