Questions tagged [coefplot]
59 questions
1
vote
1 answer
decreasing coefficients in R's coefplot?
coefplot from library(coefplot) has a variable decreasing which when set to to TRUE the coefficients should be plotted in descending order
But when I run a toy example:
data(tips, package = "reshape2")
mod1 <- lm(tip ~ day + sex + smoker, data =…

invictus
- 1,821
- 3
- 25
- 30
1
vote
1 answer
In Stata, how can I adjust size of coefplot's headings?
I'm working with coefplot command (source, docs) in Stata plotting regression coefficients.
Taking the example from manual:
sysuse auto,clear
keep if rep78>=3
regress mpg headroom i.rep##i.foreign
coefplot, xline(0) omitted baselevels…

radek
- 7,240
- 8
- 58
- 83
0
votes
1 answer
How to draw significant coefficients against log odds/ Incidence Rate Ratio for negative binomial glmm?
I am trying to run glmm for my data and I have top models for all my target species. However, when I try to plot them with log odds, all the coefficients show up. When I try to select just one coefficient (for e.g. Predator and Aspect), one part of…

Zaara Kidwai
- 13
- 3
0
votes
0 answers
How do I Add or change error bars in coefplot2?
I am plotting graphs for my glmm models in R and I would like the coefplot2 to have a different error bar. Is it possible? Currently I have this graph:
But I want it to look like this:
Can I change the error bars to match this way? I don't…

Zaara Kidwai
- 13
- 3
0
votes
1 answer
How to hard code coefficients in coefplot
I have two 95% confidence intervals I would like to display side by side in one coeff plot in Stata.
The first is just a regression that I run, and I use coefplot to plot the coefficient & its 95% confidence interval.
The second, though, is not a…
0
votes
2 answers
Event study plot
I want to make an event study plot in R. I have a dataset like this in R:
library(tidyverse)
groups <- c("A", "B", "C", "D", "E")
data <- tibble(id=1:10000,
date=sample(seq(as.Date("2006-01-01"),
…

Ajern
- 11
- 3
0
votes
0 answers
Coefplot confidence intervals by colour
I want to create a coefficient plot where each confidence intervals shows three significance levels: 99, 95, 90. Moreover, I would like the confidence interval line to vary by colour depending on the significance level it is showing. My code is as…

daviddupont
- 135
- 7
0
votes
1 answer
How do I get two coefficients from a set of regressions plotted on the same chart?
I am estimating a model in Stata 16 over several subsamples. I want a chart comparing two coefficients of interest over the different subsamples, with axis labels showing which subsample it comes from.
Is there a way to combine both of these on the…

barnetjohn
- 1
- 1
0
votes
1 answer
How can I adjust a coefplot for the constant value of categorical variable estimation?
I have a dataset in Stata that looks something like this
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
dv2 | 1,904 .5395645 …

Alex
- 1,207
- 9
- 25
0
votes
1 answer
Using dwplot to display coefficients by different colors based on some paramaters
I want to create a sjPlot-ish coefficient plot using dwplot() because my model outputs (odds-ratio-lized logit coefs and s.e.) cannot be directly fed into the former. I want the output to display coef > 1 in "#377EB8" and those <= 1 in "#E41A1C"…

Chris T.
- 1,699
- 7
- 23
- 45
0
votes
0 answers
Coefficient Plot in r for mixed model
I have fitted a three level model looking at political trust using multiple waves of survey data. Individuals nested in country-waves nested in countries. Now that I have my results, I want to present them in a coefficient plot. I have fitted a…

user18325005
- 13
- 5
0
votes
1 answer
Changing legend text size coefplot
I am working on coefplot and I would like to readjust the legend size of the labels to vsmall. However, when I use labsize(vsmall)). I get an error. Am I missing a specific step within coefplot?
coefplot weight height, xtitle(Medical Records)…

econ_grad12345
- 31
- 6
0
votes
0 answers
Plot separate legends for shape and color with multiplot (coefplot) R
I am trying to plot a graph using multiplot, I function that I do not know really well. I want to set different colours with respect to the time span and different shapes with respect to the type of regression used. I tried to use the ggplot…

Martina Dattilo
- 1
- 1
0
votes
1 answer
Coefplot fit next to each other
I am creating three coefficient plots with the same variables and want them to be one next to each other, but the third one does not fit horizontally so it appears under the other two. My code is
coefplot reg1O reg2O, bylabel(Overall) || reg1R…

daviddupont
- 135
- 7
0
votes
1 answer
Coefplot: change color of bar in the graph in stata
I have multiple regressions and I used the coefplot command to add all of the confidence intervals on one graph with a bar. Is it possible to change the color of the bars to be the same for each dependent variable in the graph. Here is my code…

ll54
- 3
- 3