npb: Function to fit nonparametric Bayes shrinkage

Description Usage Arguments Value

View source: R/npb.R

Description

Fits nonparametric Bayes shrinkage model for continuous response data using Markov chain Monte Carlo (MCMC) methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
npb(
  niter,
  nburn,
  X,
  Y,
  W,
  scaleY = FALSE,
  priors,
  interact = FALSE,
  intercept = TRUE,
  XWinteract = FALSE
)

Arguments

niter

number of iterations

nburn

number of burn-in iterations

X

n by p matrix of predictor data

Y

n by 1 vector of continuous response data

W

n by q matrix of covariate data

scaleY

logical; if TRUE response will be centered and scaled before model fit, default is FALSE

priors

list of prior hyperparameters, see package documentation for details

interact

logical; if TRUE (default) include all pairwise interactions of predictors, if FALSE include main effects only

intercept

logical; indicates if an overall intercept should be estimated with covariates

XWinteract

logical; indicates if X and W can interact

Value

an object of class "npb", which has the associated methods:

a list with components


lvhoskovec/mmpack documentation built on Aug. 21, 2021, 4:05 p.m.