loglikelihood function for current state of parameters

loglik(
  res,
  pilong,
  blong,
  qlong,
  dlong,
  sigmasq,
  timepoints,
  tCoef = 1,
  index,
  numExch,
  density = "Gaussian",
  phi
)

Arguments

res

data frame of uptake data

pilong

numeric vector of mixing parameters

blong

numeric vector of rate parameters

qlong

numeric vector of stretch parameters

dlong

numeric vector of rate parameters

sigmasq

numeric variance parameter

timepoints

numeric vector of time points

tCoef

numeric vector scaling variance of timepoints

index

list of indices for each peptide residues

numExch

the number of exchangeable amides for each peptide

density

character string of density function.

phi

numeric maximum uptake possible

Value

numeric log likelihood