Questions tagged [marginal-effects]

Marginal effects in regression analysis show how an explained variable changes when a particular explanatory variable changes ceteris paribus.

147 questions
0
votes
0 answers

3-way interaction between continuous variables and data

I want to plot a 3-way interaction between continuous variables and show the data. I get three panels side by side and the marginal means for each group factor (tiv). I now want to adding the data points manually using geom_point and…
0
votes
1 answer

Get the marginal effect of a variable (interacted with another) in a logit model with 6 explanatory varibles

I ran the model below and want to get the marginal effects of "PMSC0to6"(0~6), depending on "Ceasefire2"(binary). result_PMSC06_CF <- glm(Participatory_Peace ~ sxp + GDPpc + wartype + coldwar + Ceasefire2*PMSC0to6, family = binomial(link =…
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 can I extract marginal effects from an interaction term?

I am trying to extract the marginal effects from an interactive term that captures for the effects of a treatment X (X is coded as 1 or 0) on outcome Y (Y is coded in a scale from -10 to 10) moderated by variable A (A is coded between 0 and 10).…
0
votes
1 answer

Probit regression : marginal effects of categorical variables?

I'm running a probit regression in R. The model mixes some continuous and categorical variables (encoded as factors). I want to compute marginal effects of each variable. To do so I use the command margins from margins package, this command returns…
0
votes
1 answer

Marginal Effects or Predicted Values after AFT Weibull Model in R using Survival Model

I am running an accelerated failure time (AFT) Weibull model in R using the survival package. It includes a factor variable AND has cluster robust standard errors. I now need to estimate marginal effects. In other words, I need to estimate the…
Heather Ba
  • 33
  • 6
0
votes
1 answer

R plot marginal effects in lme

I have the following lme model (intercepts random on 3 levels): Y=dependent V., V1-V3=individual level variables (level 1), V4=Country level variable (level 3) random slope for V1 cross-level interaction of V1 and V4 modelCI1= lme(Y~…
0
votes
1 answer

OLS Discrete Marginal Effects for Triple Interaction in R

I have the following ordinary least squares model (OLS) interactive model that I want to extract discrete marginal effects (i.e. the average marginal effect of weight across discrete categories of speed and foreign-build autos) for the triple…
0
votes
2 answers

How to plot marginal effects (MEM) in R?

I have two logistic and two ordered logistic regression models: model <- glm(Y1 ~ X1+X2+X3+X4+X5, data = data, family = "binomial") #logistic modelInteraction <- glm(Y1 ~ X1+X2+X3+X4+X5+X1*X5, data = data, family = "binomial") #logistic …
FKG
  • 285
  • 1
  • 4
  • 17
0
votes
0 answers

Plot the the marginal effects for each explanatory variables in R (ordered probit)

I'm running an ordered probit regression analysis. I've now calculated the marginal effects for each explanatory variable on my dependent variable (DV=0,1,2) using the erer package in R. Now, my question is how do I plot the marginal effects? The…
FKG
  • 285
  • 1
  • 4
  • 17
0
votes
1 answer

Calculating marginal effects using mlogit in R

I have asked this question on Cross Validated, but think I might not get help as this is more of a programming question rather then theory/interpretation of the statistics. I am trying to use the mlogit package in R and have been following the…
Kerry
  • 793
  • 14
  • 33
-1
votes
1 answer

Suest after AME- dy/dx not saving for suest

After running these command all day, my head is on fire, I am now reaching out. Please don't direct me to papers about Suest that are commonly mentioned on the web, I already checked them. It seems there is a problem with storing the dy/dx values of…
OCR
  • 1
  • 1
1 2 3
9
10