Metroplis step for the stretch parameter

metropolisStretch(
  res,
  pilong,
  blong,
  dlong,
  currentq,
  currentSigma,
  bp,
  mean = 0,
  sd = 1,
  shape1 = 1,
  shape2 = 5,
  multivariate = FALSE,
  cormat = NULL,
  timepoints = timepoints,
  tCoef,
  index,
  numExch,
  density,
  phi
)

Arguments

res

data frame of uptake data

pilong

numeric vector of mixing parameters

blong

numeric vector of rate parameters

dlong

numeric vector of rate parameters

currentq

numeric vector of current stretch 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

shape1

numeric shape parameter of the prior beta distribution

shape2

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 stretch parameters