Perform a metropolis step for the variance parameter

metropolisSigma(
  res,
  currentSigma,
  pilong,
  blong,
  qlong,
  dlong,
  mean,
  sd,
  meanprop = 0,
  sdprop = 1,
  multivariate = FALSE,
  cormat = NULL,
  timepoints,
  tCoef,
  index,
  numExch,
  density = "Gaussian",
  phi
)

Arguments

res

data frame of uptake data

currentSigma

numeric current variance parameter

pilong

numeric vector of mixing parameters

blong

numeric vector of rate parameters

qlong

numeric vector of stretch parameters

dlong

numeric vector of rate parameters

mean

numeric mean of the prior distribution

sd

numeric standard deviation of the prior distribution

meanprop

numeric mean of the proposal distribution

sdprop

numeric standard deviation of the proposal 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 variance parameter