stargazer

Summarizing Factors and Times with Stargazer

╄→尐↘猪︶ㄣ 提交于 2019-12-11 18:45:01
问题 I am not sure why it seems so difficult to find information regarding summarizing non-quantitative variables with stargazer. I would like a summary of the following time variable (number of observations, min and max value would be great) Time<-c("2014-07-03 10:57:35 PDT", "2014-07-03 11:02:35 PDT", "2014-07-03 11:07:35 PDT", "2014-07-03 11:12:35 PDT", "2014-07-03 11:17:34 PDT", "2014-07-03 11:22:34 PDT") Time<-as.POSIXlt(Time, format="%Y-%M-%d %H:%M:%S") And a overall sample size and number

Label only part of the omitted variables with Stargazer

流过昼夜 提交于 2019-12-11 08:06:40
问题 Using stargazer , I want to omit some of the control variables from the report. I want to label some of them, while not labeling the rest (or group them all under "Other control variables"). omit and omit.labels should be of the same length, so just ignoring some of the variables won't do. Is there any way to do that? 回答1: Found a way to do it. Use omit and omit.label for the omitted variables you want to state (FE etc.), use keep to state the only variable you wish to keep in the report. All

Include vif information in stargazer output

社会主义新天地 提交于 2019-12-11 06:00:21
问题 I have a an output from the lm function to which I applied the vif function from the car package. I would like to include the vif in a regression table produced by the stargazer package, but I do not manage to add an additional column. Is this possible at all? I would also be open for suggestions regarding using other packages. Thx and please let me know incase you need further information. 回答1: As suggested by others, the possibilities of customising output with stargazer are limited. One

How to output several variables in the same row using stargazer in R

一笑奈何 提交于 2019-12-11 03:35:20
问题 I would like to output the interaction terms from several regressions in the same row and call it "Interaction". So far what I have is that the interaction terms show up in two different rows called "Interaction" (see code below). This question has already been asked here, but my score isn't high enough yet to upvote it or comment on it: https://stackoverflow.com/questions/28859569/several-coefficients-in-one-line. library("stargazer") stargazer(attitude) stargazer(attitude, summary=FALSE) #

R stargazer package: eliminate “t =” label from reported test statistics

蓝咒 提交于 2019-12-10 15:15:54
问题 I am currently preparing a table of regression results with stargazer. In this, I also want to show the t-statistics. For that, I use the following simplified specification, as also shown in http://jakeruss.com/cheatsheets/stargazer.html#report-t-statistics-or-p-values-instead-of-standard-errors stargazer(output, output2, type = "html", report = "vc*t") The resulting table reports the t-statistics as follows: 0.088 t = 5.822*** Now my question: the "t =" is repeated for each model and each

Stargazer options: resizebox and label

社会主义新天地 提交于 2019-12-10 11:14:48
问题 Is it possible to incorporate resizebox into stargazer in R? I'm trying to create a table that is too wide to fit, even on landscape perspective. I manually added resizebox{\textwidth}{!} { \begin{tabular} \end{tabular} } to the .tex file, and I like how it looks. However, I'd like for my .Rnw file to be complete, so that I can generate pdf perfectly without additional changes to the .tex file. On a related note, stargazer causes pdflatex to output multiple warnings due to it including \label

Analysing a data frame that contains a time series using stargazer

↘锁芯ラ 提交于 2019-12-10 10:42:20
问题 I have a panel data set of 10 obs. and 3 variables. (# of obs. 30 = 10 rows (= countries) * 2 columns (= migration parameters) * 1col for the respective year. My data frame consists of 3 annual data frames, so to say. How can I apply stargazer on the whole period of time by taking into account that it is a panel data set (so max N=10)? That is, R should start over after every 11th row. I'd like to get the pretty table for descriptive statistics The data set for the first three years:

Rotate stargazer table in knitr

此生再无相见时 提交于 2019-12-08 06:44:37
问题 I am using knitr to write a .Rnw file and the stargazer packages to build tables for regression outputs. For the most part it is working quite well but I would like to rotate a table 90 degrees like I would easily be able to do in LaTeX using \usepackage{sidewaystable} outside of .Rnw \documentclass{article} \begin{document} <<table1, echo=FALSE, message=F, warning=F, results="asis">>= library(stargazer) lm1 <- lm(mpg ~ wt, data = mtcars) lm2 <- lm(mpg ~ hp, data = mtcars) lm3 <- lm(mpg ~ cyl

how to get beautiful latex output of “nls” object

廉价感情. 提交于 2019-12-07 21:15:31
问题 I need LaTex representation of an "nls" object. Unfortunately stargazer doesn't support this object type. Some research on the net led me to as.lm.nls function out of nls2 library. It claims to convert an nls object to corresponding lm object. In my case it failed miserably. Below is the sample output: > DNase1 <- subset(DNase, Run == 1) > xx <- nls(density ~ SSlogis(log(conc), Asym, xmid, scal), DNase1) > summary(xx) Formula: density ~ SSlogis(log(conc), Asym, xmid, scal) Parameters:

Spaces between columns in stargazer type = “html” table output

非 Y 不嫁゛ 提交于 2019-12-06 23:17:14
问题 I`m searching for a method (or alternative) to get spaces between the columns of an stargazer html-table output. As stargazer::stargazer(mtcars, type = "html") results in which is not very good to read... Thank´s in advance! Samuel 回答1: If you are writing an RMarkdown document, you can customize your HTML tables using stylesheets. This can be done adding the option CSS to your YAML header. Something like this: --- title: "My HTML Doc" output: html_document: css: styles.css --- To increase the