tests/negbinmfx-test.R

library('mfx')

### Name: negbinmfx
### Title: Marginal effects for a negative binomial regression.
### Aliases: negbinmfx print.negbinmfx

### ** Examples

# simulate some data
set.seed(12345)
n = 1000
x = rnorm(n)
y = rnegbin(n, mu = exp(1 + 0.5 * x), theta = 0.5)

data = data.frame(y,x)

negbinmfx(formula=y~x,data=data)

Try the mfx package in your browser

Any scripts or data that you put into this service are public.

mfx documentation built on May 2, 2019, 12:46 p.m.