InvestigatePrior: Investigate prior

Description Usage Arguments


Investigate the impact of the r[m] parameters on the smoothness of the exposure-response function h(z[m]).


InvestigatePrior(y, Z, X, ngrid = 50, q.seq = c(2, 1, 1/2, 1/4, 1/8, 1/16),
  r.seq = NULL, Drange = NULL, verbose = FALSE)



a vector of outcome data of length n.


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.


an n-by-K matrix of covariate data where each row represents an observation and each column represents a covariate. Should not contain an intercept column.


Number of grid points over which to plot the exposure-response function


Sequence of values corresponding to different degrees of smoothness in the estimated exposure-response function. A value of q corresponds to fractions of the range of the data over which there is a decay in the correlation cor(h[i],h[j]) between two subjects by 50%.


sequence of values at which to fix r for estimating the exposure-response function


the range of the z_m data over which to apply the values of q.seq. If not specified, will be calculated as the maximum of the ranges of z_1 through z_M.


TRUE or FALSE: flag indicating whether to print to the screen which exposure variable and q value has been completed

Search within the bkmr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.