Questions tagged [coefplot]

59 questions
0
votes
0 answers

Fitting two coefplot in one graph using par(mfrow()) method

I'm trying to arrange two coefplot objects into one graph via the par(mfrow(,)) method, but it didn't work out. What did I do wrong? Or is that coefplot just doesn't work this way? What will be alternative method? I've referenced this earlier…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
0
votes
1 answer

coefplot with rdrobust

In Stata I'm trying to plot the coefficients of rdrobust estimates using coefplot: foreach depvar of varlist var1 var2 var3 var4 { rdrobust `depvar' running_variable, kernel(triangular) bwselect(cerrd) p(1) estimates store …
mmramame
  • 55
  • 9
0
votes
1 answer

Dropping variables from the coefplot of marginal effects (mlogit)

I want to create a coefficient plot by coefplot on the marginal effects after running a multinomial logistic regression in Stata. What I would like to get help with: I would like to keep only one variable in the graph - i.cohort which has 6…
Ripon
  • 25
  • 7
0
votes
1 answer

How to interleave two string vectors with equal signs?

I am trying to interleave two string vectors into a vector of, I believe, quosures with equal signs. Here is an example: a <- c('coef_name1', 'coef_name2') b <- c('clean_name1', 'clean_name2') desired_output <- c('coef_name1'='clean_name1',…
Seb
  • 370
  • 2
  • 14
0
votes
1 answer

How to color by coefficient rather than model in R coefplot::multiplot

I am making a coefficient plot with multiple models using coefplot::multiplot in R; the below image is what I currently have. And this is the code I used to create it: coefplot::multiplot(sc.mod.env.msrh, sc.mod.env.msrhmu, sc.mod.env.msrhat,…
agorapotatoes
  • 311
  • 2
  • 16
0
votes
1 answer

How do I plot coefficients for multiple models in one graph using coefplot?

I have models that have different dependent variables (DVs), but using the same instrumental variable (IV), with two different types of identification strategies. In short I have: Group1 model 1 model 2 model 3 model 4 Group2 model 1-2 model…
halo09876
  • 2,725
  • 12
  • 51
  • 71
0
votes
1 answer

Getting coefplot to use estimate titles or outcome labels

Consider the following toy example using the community-contributed Stata command coefplot: sysuse auto reg weight i.foreign eststo, title("Weight"): margins, eydx(foreign) post reg price i.foreign eststo, title("Price"): margins, eydx(foreign)…
dimitriy
  • 9,077
  • 2
  • 25
  • 50
0
votes
1 answer

Coefplot fatal plotting error ggproto [R]

I recently installed the coefplot package to plot the confidence intervals for a couple multivariate regressions. However, I am getting a fatal error. I followed all of the steps listed by @jashu in this post and restarted R, but it did not remedy…
Stephen Kaiser
  • 113
  • 1
  • 7
0
votes
2 answers

R coefplot error: Error in f(..., self = self)

I am using coefplot() (from coefplot package) to plot the result of a logit model. The model is just straightforward without additional specification and has no missing values, so I don't want to get down to ggplot2 to produce a customized…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
0
votes
1 answer

Graph evolution of quantile non-linear coefficient: can it be done with grqreg? Other options?

I have the following model: Y_{it} = alpha_i + B1*weight_{it} + B2*Dummy_Foreign_{i} + B3*(weight*Dummy_Foreign)_ {it} + e_{it} and I am interested on the effect on Y of weight for foreign cars and to graph the evolution of the relevant coefficient…
k1000x
  • 65
  • 10
0
votes
1 answer

Change model colors in multiplot (ggplot2)

I am using the multiplot function in the coefplot package, which uses ggplot2 as a base. I am plotting multiple models but can't figure out how to change the color of each model. For example: require(coefplot) data(diamonds) model1 <- lm(price ~…
coding_heart
  • 1,245
  • 3
  • 25
  • 46
0
votes
1 answer

cex.var not working... How to change size of variables font in coefplot

I'm trying to plot the coefficients (and 95% CIs) from a regression model in R but the variable names are tiny. I'm trying to increase the size of the names but the line cex.var=3.0 incoefplot(model, cex.var=3.0) doesn't seem to be changing…
Neue1987
  • 171
  • 1
  • 2
  • 13
-1
votes
1 answer

stata plotting coefficients from loop regression

I am a beginner in Stata and I am trying to create a loop regression, store the coefficients of the DVs and then plot these. Does this code make sense? forvalues i = 1/100 { regress y x1 x2 x3 if ID==`i' matrix b1 = e(x1) matrix b2 = e(x2) matrix…
Eleni
  • 3
  • 1
-1
votes
2 answers

Comparing mean values by group between several variables

I am trying to reproduce a graph from Stata in R. I have several variables and want to display their mean in each treatment group of which there are two. The Stata graph is as follows: This coefficient plot is not actually a plot of coefficients,…
JohnD
  • 121
  • 1
  • 9
1 2 3
4