plot_2D: Wrapper Function for 2D Input Plots

Description Usage Arguments Value

Description

To better understand the model, we can visualize it, however due to universal limitations, plots are only availabe for X inputs of 2 dimentions. ie: only two factors included on the regresion.

Usage

1
2
plot_2D(Y, X, bpwpm_params, n = 10, alpha = 0.6, m = 5,
  fof0 = TRUE)

Arguments

Y

A response vector of size n

X

An input matrix of size n*2.

bpwpm_params

an object of the class bpwpm_params of bpwpm_prediction created by the functions posterior_params or predict.bpwpm respectively that contains all the info about the posterior parametres of the model.

n

Thinness of grid for 2D projection

alpha

numeric - level of transparency for 2D projection

m

Thinness of grid for 3D projection

fof0

logical - if the constant function 0 is to be plotted

Value

A series of 3 plots to help ilustrate the model


PaoloLuciano/bpwpm2 documentation built on June 6, 2019, 5:47 p.m.