plot_each_F: Plots each dimention f(x)

Description Usage Arguments Value

Description

With the posterior w parameters calculated from the Gibbs run, and posterior_params, a Final F matrix can be calculated. and hence, ploted against every Input X to see how does the PWP expansion looks like for the specified set of parameters.

Usage

1
plot_each_F(Y, X, F_mat, jitter = FALSE, ...)

Arguments

Y

A vector of binary response. Can be encoded as either a factor vector or as a numeric one.

X

A data frame or matrix containing the original Inputs for the model.

F_mat

The F matrix calculated via calculate_F or alternativly you can pass it the parameters calculated by function posterior_params

Value

d plots for each dimention created using ggplot2


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