Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PredictorResponseBivarLevels

Plot cross-sections of the bivariate predictor-response function


Description

Function to plot the h function of a particular variable at different levels (quantiles) of a second variable

Usage

PredictorResponseBivarLevels(pred.resp.df, Z = NULL, qs = c(0.25, 0.5,
  0.75), both_pairs = TRUE, z.names = NULL)

Arguments

pred.resp.df

object obtained from running the function PredictorResponseBivar

Z

an n-by-M matrix of predictor variables to be included in the h function. Each row represents an observation and each column represents an predictor.

qs

vector of quantiles at which to fix the second variable

both_pairs

flag indicating whether, if h(z1) is being plotted for z2 fixed at different levels, that they should be plotted in the reverse order as well (for h(z2) at different levels of z1)

z.names

optional vector of names for the columns of z

Details

For guided examples, go to https://jenfb.github.io/bkmr/overview.html


bkmr

Bayesian Kernel Machine Regression

v0.2.0
GPL-2
Authors
Jennifer F. Bobb [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.