Learn R Programming

condvis (version 0.2-1)

condvis-package: Conditional Visualization for Statistical Models

Description

Exploring statistical models by interactively taking 2-D and 3-D sections in data space. The main function for end users is ceplot (see example below). Requires http://www.xquartz.org/{Xquartz} on Mac OS, and X11 on Linux. Bugs and issues can be raised at https://bitbucket.org/markajoc/condvis/issues{BitBucket}.

Arguments

Details

ll{ Package: condvis Type: Package Version: 0.2-1 Date: 2016-02-22 License: GPL-2 }

Examples

Run this code
mtcars$cyl <- as.factor(mtcars$cyl)
mtcars$am <- as.factor(mtcars$am)

library(mgcv)
model1 <- list(
  quadratic = lm(mpg ~ cyl + am + qsec + wt + I(wt^2), data = mtcars),
  additive = gam(mpg ~ cyl + am + qsec + s(wt), data = mtcars))

ceplot(data = mtcars, model = model1, S = "wt")

Run the code above in your browser using DataLab