outreg(rockchalk)
outreg()所属R语言包:rockchalk
outreg
outreg
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates a publication quality regression result table for models fitted by lm and glm. Can be called within Sweave documents.
创建一个出版质量流明,GLM拟合的模型回归结果表。被称为Sweave文件内。
用法----------Usage----------
outreg(incoming, title, label, modelLabels = NULL,
varLabels = NULL, tight = TRUE, showAIC = FALSE,
lyx = TRUE)
参数----------Arguments----------
参数:incoming
A single regression model or an R list of regression models.
一个单一的回归模型,回归模型的R列表。
参数:title
A title to be displayed on the top of the LaTeX regression table.
一个要显示的标题在上面的LaTeX的回归表。
参数:label
A string to be used as a LaTeX label in the table to be created.
在表中被用来作为一个LaTeX标签的字符串被创建。
参数:modelLabels
If "incoming" is a list of fitted models, this can supply strings to separately label each one in the output table.
如果“入”是拟合模型的列表,这可以提供的字符串分别标示在输出表中的每一个。
参数:varLabels
To beautify the words associated with the fitted variables, use this argument.
为了美化与拟合的变量的话,使用此参数。
参数:tight
If T, parameter estimates and standard errors are printed in a single column, thus allowing several models to be displayed side by side. If F, parameter estimates and standard errors are printed side by side.
如果是T,参数估计值和标准错误都印在一个单一的列,从而使几种模型可以并排显示。如果F,参数估计和标准错误并排打印。
参数:showAIC
if TRUE, the AIC estimate is included with the diagnostic values
如果为true,AIC所列举的数字与诊断中的价值
参数:lyx
If the LaTeX output is going into a LaTeX table that already exists, as, for example, it might be in LyX when the Sweaved code is inside a floating table object, set this to TRUE. Otherwise, the value of FALSE causes the output to include the output that creates more of the LaTeX table boilerplate.
,LaTeX输出进入一个LaTeX表已经存在,例如,它可能是在LyX的,当Sweaved代码是一个浮动的表对象内,设置为TRUE。否则,FALSE值,使输出包括输出,创造更多的乳胶表的样板。
Details
详细信息----------Details----------
Uses a bunch of tedious "cat" statements to display the regression model in LaTeX output.
使用一堆繁琐的“猫”报表显示LaTeX输出的回归模型中。
值----------Value----------
None
无
注意----------Note----------
There are many R packages that can be used to create LaTeX regression tables. memisc, apsrtable, xtables, and rms are some. This "outreg" version was in use in our labs before we were aware that those packages were in development. It is not intended as a competitor, it is just a slightly different version of the same that is more suited to our needs.
有许多可以用来创建LaTeX的回归表R封装。 memisc,apsrtable,xtables,RMS一些。在我们的实验室中使用这种“outreg”版本之前,我们都知道,这些软件包在发展。它的目的不是作为一个竞争者,它只是一个稍微不同的版本相同,更适合我们的需要。
(作者)----------Author(s)----------
Paul E. Johnson <a href="mailto:<pauljohn@ku.edu>"><pauljohn@ku.edu></a>
参考文献----------References----------
实例----------Examples----------
x1 <- rnorm(100)
x2 <- rnorm(100)
y1 <- 5*rnorm(100)+3*x1 + 4*x2
y2 <- rnorm(100)+5*x2
m1 <- lm (y1~x1)
m2 <- lm (y1~x2)
m3 <- lm (y1 ~ x1 + x2)
gm1 <- glm(y1~x1)
outreg(m1,title="My One Tightly Printed Regression", lyx=FALSE )
outreg(m1,tight=FALSE,modelLabels=c("Fingers"), title="My Only Spread Out Regressions" ,lyx=FALSE)
outreg(list(m1,m2),modelLabels=c("Mine","Yours"),varLabels=list(x1="Billie"), title="My Two Linear Regressions Tightly Printed" ,lyx=FALSE)
outreg(list(m1,m2),modelLabels=c("Whatever","Whichever"), title="My Two Linear Regressions Not Tightly Printed", showAIC=FALSE, lyx=FALSE)
outreg(list(m1,m2,m3),title="My Three Linear Regressions", lyx=FALSE)
outreg(list(m1,m2,m3),tight=FALSE,modelLabels=c("I Love love love really long titles","Hate Long","Medium"), lyx=FALSE)
outreg(list(gm1),modelLabels=c("GLM"), lyx=FALSE)
outreg(list(m1,gm1),modelLabels=c("OLS","GLM"), lyx=FALSE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|