metroplis step for the mixing parameter

metropolisPi(
  res,
  currentpi,
  blong,
  qlong,
  dlong,
  currentSigma,
  bp,
  mean = 0,
  sd = 1,
  pishape1 = 1,
  pishape2 = 1,
  multivariate = FALSE,
  cormat = NULL,
  timepoints = timepoints,
  tCoef,
  index,
  numExch,
  density,
  phi
)

Arguments

res

data frame of uptake data

currentpi

numeric vector of current mixing parameters

blong

numeric vector of rate parameters

qlong

numeric vector of stretch parameters

dlong

numeric vector of rate parameters

currentSigma

numeric current variance parameter

bp

numeric vector of breakpoints

mean

numeric mean of the proposal distribution

sd

numeric standard deviation of the proposal distribution

pishape1

numeric shape parameter of the prior beta distribution

pishape2

numeric shape parameter of the prior beta distribution

multivariate

logical flag for multivariate model

cormat

numeric correlation matrix

timepoints

numeric vector of time points

tCoef

numeric vector of scaling variance of time points

index

list of indices for each peptide residues

numExch

list of number of exchangeable amides for each peptide

density

character string of density function

phi

numeric maximum uptake possible

Value

numeric updated mixing parameters