Stargazer is an R package that produces LaTeX code for well-formatted tables that hold regression analysis results from several models side-by-side, as well as summary statistics.
Stargazer is an r package that produces latex code for well-formatted tables that hold regression analysis results from several models side-by-side, as well as summary statistics.
df is data with values from 1-10 for 14 different variables formatted as a dataframe with n observations with lots of NA values for each variable which is why I couldn't do a regular lm with multiple predictors.
Then I used an lapply in order to do…
I'm trying to omit variables that appear in some models but not in others. However, I'm not getting the output I expect. I'm using stargazer 5.2. Here's a MWE:
y <- rbinom(100, 1, 0.5)
x <- rnorm(100)
z <- rnorm(100)
fit1.lm <- lm(y~x)
fit2.lm <-…
I made a dataset and I'm trying to get Stargazer to print it as is, but for the last column it won't print anything but zeros.
my_object<-structure(list(labels_for_t_test = structure(c(4L, 3L, 2L, 1L),
.Label = c("% who report…
I want to output the lower tri in a matrix and format it to latex for a pretty output.
I have tried:
stargazer(overlap_stats1$overlap_prop$iso95[upper.tri(overlap_stats1$overlap_prop$iso95)])
but the result is only one line of output.
I am trying to print a dist object in latex code using stargazer.
example
require(ape)
require(stargazer)
data(woodmouse)
dd<-dist.dna(woodmouse)
stargazer(dd)
Error in objects[[i]]$zelig.call :
$ operator is invalid for atomic vectors
Also…
I work with R-Studio (Version 0.98.1102) and use the stargazer package (5.1). It all works properly, but when I use the type="html" function, my output looks quite ugly, there is no frame, no lines, it's just a white document with numbers and text.…
Sometimes it's tacky to include statistical significance stars for the constant term when reporting the results of a regression. Is it possible to configure stargazer to keep stars for the regressors, but not for the constant term?
fit <- lm(rating…
In R, the stargazer package offers the possibility to apply functions to the coefficients, standard errors, etc:
dat <- read.dta("http://www.ats.ucla.edu/stat/stata/dae/nb_data.dta")
dat <- within(dat, {
prog <- factor(prog, levels = 1:3, labels…
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…
I wonder how to use stargazer for systemfit objects. My working example is below which gives two different tables rather than one.
library("systemfit")
data("Kmenta")
eqDemand <- consump ~ price + income
eqSupply <- consump ~ price + farmPrice +…
I follow the instruction of this article
> library(stargazer)
> stargazer(attitude)
% Table created by stargazer v.5.0 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Fri, Mar 07, 2014 - 4:12:55…
It appears that the stargazer package's "Observations" is incorrect if factor interactions are dropped from a model:
Here's the issue using R's built-in dataset:
data(mtcars)
names(mtcars)
mtcars$gear.f = as.factor(mtcars$gear) # create two sets of…
I am trying to obtain a latex table with the summary of a lme4.lmer() run.
There are a number of R packages which claim to do this. However, in my experience none of them could. Here is a run-down:
xtable - doesn't seem to take my input, neither…
I want to report correlation tables in a latex report and I'm using 'stargazer' to transform my R objects into tex-code. The correlational data is currently stored in a data frame.
I would like to print rownames and possibly add an annotation under…