README.md

marginal logo

marginal will be an R package for calculating marginal effects for arbitrary prediction models. As of now, code and research are in early stages. In other words, BUYER BEWARE

Open issues include:

Some basic usage

devtools::install_github("tommyjones/marginal")

library(marginal)
library(randomForest)

data(mtcars)

fit <- randomForest(mpg ~., data = mtcars)

mfx <- CalcMfx(object = fit, X = mtcars)

plot(mfx)


TommyJones/marginal documentation built on Nov. 21, 2019, 3:53 p.m.