Learn R Programming

deeptrafo (version 1.0-0)

plot.deeptrafo: Plot method for deep conditional transformation models

Description

Plot method for deep conditional transformation models

Usage

# S3 method for deeptrafo
plot(
  x,
  which = NULL,
  type = c("smooth", "trafo", "pdf", "cdf"),
  newdata = NULL,
  which_param = c("shifting", "interacting"),
  only_data = FALSE,
  K = 40,
  q = NULL,
  ...
)

Arguments

x

Object of class "deeptrafo".

which

Which effect to plot, default selects all smooth effects in the shift term.

type

Character; One of "smooth", "trafo", "pdf", or "cdf".

newdata

Optional new data (list or data.frame) to evaluate predictions at. If the response is missing, plots are generated on a grid of length K

which_param

Character; either "interacting" or "shifting".

only_data

Logical, if TRUE, only the data for plotting is returned.

K

Integer; If type == "smooth" the length of an equidistant grid at which a two-dimensional function is evaluated for plotting. Otherwise, length of the grid to evaluate predictions at, see newdata.

q

Vector of response values to compute predictions at, see newdata

...

Further arguments, passed to fit, plot or predict function