Questions tagged [coefplot]
59 questions
7
votes
1 answer
Plotting same coefficient over time
I am using the coefplot package in Stata to plot how a coefficient changes depending on the model employed. In particular, I want to see how the coefficient of interest changes over time. I am plotting it vertically, so the x-axis could show the…

Fran
- 73
- 1
- 3
4
votes
1 answer
How to specify different xscale in coefplot using stata?
I am using coefplot in stata to plot coefficients. I am combining two graphs together and would like to use different xscale. The webpage suggests to use this option:
byopts(xrescale)
However, this option does not allow user-specified xscale. For…

Yan Song
- 2,285
- 4
- 18
- 27
3
votes
1 answer
Why does coefplot not plot all levels of interaction in Stata?
I want to plot the coefficients from this regression as a forest plot.
-------------------------------------------------------------------------------
price | Coefficient Std. err. t P>|t| [95% conf.…

Bicep
- 1,093
- 4
- 14
3
votes
2 answers
Plot only interaction terms in coefplot
After a regression in Stata, I am trying to plot only the coefficients of the interaction terms.
I was unable to do this using the community-contributed command coefplot.
Here is a reproducible example and my attempted solutions:
sysuse auto,…

LucasMation
- 2,408
- 2
- 22
- 45
3
votes
1 answer
Spacing for y-axis labels in coefplot
I am working with the community-contributed command coefplot in Stata.
I have a large number of estimated coefficients, which I would like to plot on the same graph.
As such, I would like to reduce the spacing between coefficients.
Consider the…

user5477262
- 33
- 1
- 4
3
votes
3 answers
coefplot in R; change CI line colours
Hi I'm using coefplot function in r to plot out the coefficients from a generalized linear model. I would like to change the colour of the 95% CI lines to be different from the 50% CI lines. The colour parameters defaults the same colour for both…

Anand Roopsind
- 581
- 2
- 8
- 11
2
votes
1 answer
Edit confidence interval in Stata coefplot
I am using the coefplot command in Stata to plot coefficients and confidence intervals from multiple regression models. I am plotting the same coefficient (X) from 4 different model specifications.
There is one model specification (alternative…

user1288578
- 411
- 1
- 6
- 15
2
votes
1 answer
Plot combining regression coefficients (partial derivatives) with CIs in R, lincom + coefplot or plotbeta?
Most of the time we run a regression with interactive terms, we are interested in a partial derivative. For example, consider the model below,
If I am interested to know the effect of X1 on P(Y), or the partial derivative of X1 on P(Y), I need the…

Thiago
- 173
- 11
2
votes
2 answers
Stata coefplot: plot coefficients and corresponding confidence intervals on 2nd axis
When trying to depict two coefficients from one regression on separate axes with Ben Jann's superb coefplot (ssc install coefplot) command, the coefficient to be shown on the 2nd axis is correctly displayed, but its confidence interval is depicted…

ChrisV
- 23
- 3
2
votes
2 answers
change coefficient names in coefplot.glm()
I would like to plot a coefplot.glm() with costumized coefficient names.
Consider the following code:
coefplot::coefplot.glm(lm(rbinom(1000,1,.5) ~ rnorm(1000,50,2) + rbinom(1000,1,prob=0.63) + rpois(1000, 2)))
This works fine but gives me the…

Ivo
- 3,890
- 5
- 22
- 53
2
votes
2 answers
Is coefplot2 still supported for current version of R version 3.6.1 (2019-07-05) -- "Action of the Toes"
I use coefplot2 to plot regression estimates for ecological data. I have a new computer so just setting up. All other packages and code working for new set-up. But dearly love to keep using coefplot2 but need assistance.
I have tried to install…

eleanor
- 21
- 2
2
votes
0 answers
Creating a Coefplot Using Python
Is it possible to create a coefplot graph in python?
I have a regression model from the following code (whereas data is my data frame):
import statsmodels.formula.api as sm
df = pd.DataFrame({"A": data['percentWatched'], "B": data['agreement'],…

Oliver G
- 1,021
- 2
- 9
- 20
2
votes
1 answer
coefplot: several models with several coefficients each in one graph
I would like to display the coefficients (with their confidence intervals) of two regressions beneath one another.
Using Ben Jann's nice coefplot (ssc install coefplot), I can create a graph with one subgraph only where all coefficients from all…

ChristinaV
- 21
- 2
2
votes
1 answer
In Stata, how can I combine multiple coefplots with different axes?
I'm trying to combine two coefplots in Stata - one presenting proportion of a binary variable, second - the odds ratios from logistic regression.
Taking some exemplary data, we look at low birth weight, separately for smokers and non smokers and…

radek
- 7,240
- 8
- 58
- 83
2
votes
1 answer
Facing Error with command multiplot from coefplot package in R
Is there anybody facing the same as I am when running the command multiplot from Rpackage coefplot?
Even for the example:
data(diamonds)
model1 <- lm(price ~ carat + cut, data=diamonds)
model2 <- lm(price ~ carat + cut + color,…

Fábio Salles
- 345
- 4
- 14