plot_each_F: Plots each dimention f(x)

Description Usage Arguments Value

View source: R/plot_funcs.R

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)

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/bpwpm documentation built on May 20, 2019, 4:25 p.m.