This paper outlines a simple routine to calculate the marginal effects of logit and probit regressions using the popular statistical software package R. I compare results obtained using this procedure with those produced using Stata. An extension of this routine to the generalized linear mixed effects regression is also presented.