R Under development (unstable) (2025-05-29 r88251 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library('mfx') Loading required package: sandwich Loading required package: lmtest Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Loading required package: MASS Loading required package: betareg > > ### Name: poissonmfx > ### Title: Marginal effects for a Poisson regression. > ### Aliases: poissonmfx print.poissonmfx > > ### ** 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) > > poissonmfx(formula=y~x,data=data) Call: poissonmfx(formula = y ~ x, data = data) Marginal Effects: dF/dx Std. Err. z P>|z| x 1.460085 0.042913 34.025 < 2.2e-16 *** --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > > proc.time() user system elapsed 0.60 0.07 0.62