npb_int: Fit nonparametric Bayes shrinkage model with interactions

Description Usage Arguments Value

View source: R/npb_int.R

Description

Fit nonparametric Bayes shrinkage model with interactions

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
npb_int(
  niter,
  nburn,
  X,
  Y,
  W,
  scaleY = FALSE,
  priors,
  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 response data

W

n by q matrix of covariate data

scaleY

logical; if TRUE response will be centered and scaled before model fit

priors

list of prior hyperparameters

intercept

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

XWinteract

logical; indicates if X and W can interact

Value

list of model estimates, see npb documentation


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