I want to report the marginal effects in the place of the usual estimated effects, using stargazer()
When the marginal effects are estimated, the results are turned into a vector, which I couldn't report in a pratical way and with the same kind of informations I would be able to, if it was a glm/lm object.
Here's a simple example:
library(dplyr)
library(stargazer)
#we create a toy data frame
pikachu <- data.frame(
employed=c(0,1,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,1,1,0,1,0,1,0),
highiq=c(1,0,1,1,1,1,0,1,1,1,1,1,1,1,0,1,0,0,0,1,0,0,0,1,0),
income=set.seed(6)%>%
c(rnorm(25,mean = 600,sd=400)))
#and run a probit regression
reg01 <- glm(employed ~ income + highiq,
family = binomial(link="probit"),
data = pikachu)
#next we estimate the marginal effects
ProbitScalar <- mean(dnorm(predict(reg01, type = "link")))
meffects <- ProbitScalar * coef(reg01)
#then we report the marg. effects
stargazer(meffects, type = "text")
I expected to be able to represent the marginal effects just like the usual results (glm class object) can be represented. Preferably with SE and significance included.
#desired result's form:
stargazer(reg01, type = "text")