Description Usage Arguments Details Value Author(s) See Also Examples
Calculates the log-posterior or log-likelihood for the data and the parameters.
1 2 3 4 5 6 7 8 9 10 11 12 | llcq(mpars, data = fetch(2, 1), maxn0 = 7, c0 = 6,
extra = c("trendx", "trendy", "disp", "E1"),
h = 0.1, n0 = 300, n1 = 465,
nt0 = 0, nt1 = 0, n.lo = 0, n.hi = 0,
nx = 0, ny = 0,
full = TRUE, delta = 1e-05, sum. = TRUE,
report = 0, probreport = 0, prior = FALSE,
mu.fun = function(mu) 1, A.fun = function(A) 1,
E.fun = function(E) 1, E1.fun = function(E1) 1,
trendx.fun = function(x) 1, trendy.fun = function(y) 1,
disp.fun = function(d) 1, prior.funs = NULL,
invisible = FALSE)
|
mpars |
parameter vector in "m" parameterisation. Use |
data |
|
maxn0 |
the maximum number of initial molecules used in computation. |
c0 |
number of cycles for which exact probabilities are caclulated. This can have a significant impact on speed of computation. |
extra |
vector of names of parameters to include in model in additon to |
h |
threshold value Not needed if data is a cqdat object. |
n0, n1, nt0, nt1, n.lo, n.hi |
counts of the number of negative partitions ( |
nx, ny |
numbers of rows, columns respectively. |
full |
logical, if |
delta |
positive number used in finite difference method. |
sum. |
logical, if |
report |
if postive then tracing information is produced. High values may produce more information. |
probreport |
if |
prior |
logical, if |
mu.fun, A.fun, E.fun, E1.fun, trendx.fun, trendy.fun, disp.fun |
priors as single parameter functions. |
prior.funs |
list of named prior functions. |
invisible |
logical. If |
Due to computation limits very small log-posteriors cannot be calculated and -10^10
is returned instead. If report>0
"." will also be printed. For other log-posteriors if report>0
then "'" is printed with probability probreport
.
If sum.
is TRUE
the log-posterior, otherwise a vector of log-densities for the Cq values.
Philip Wilson
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.