profileReg: Fit Bayesian profile regression

Description Usage Arguments Value

View source: R/profileReg.R

Description

Fits the Bayesian profile regression model using MCMC methods

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
profileReg(
  niter,
  nburn,
  X,
  Y,
  W,
  C = 20,
  scaleY = FALSE,
  DPgamma = TRUE,
  varsel = FALSE,
  priors,
  sup = TRUE
)

Arguments

niter

number of total 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

C

maximum number of clusters allowed

scaleY

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

DPgamma

logical; if TRUE (default) alpha has a gamma prior, else alpha has Unif(.03, 10) prior

varsel

logical; if TRUE binary cluster variable selection is implemented (see Chung and Dunson 2009), default is FALSE

priors

list of prior hyperparameters, see package documentation for details

sup

logical; if TRUE (default) fits supervised model, else fits unsupervised model

Value

list with components


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