npem.ll | R Documentation |
Calculates the log likelihood at a single point in the parameter space, for the normal-Poisson mixture model with data on a cell proliferation assay.
npem.ll(y, ests, cells = 10^6, n = c(24, 24, 24, 22), n.plates = 1, maxk = 30)
y |
Vector of transformed scintillation counts, in lexicographical order (plate by plate and group by group within a plate.) |
ests |
Value of the parameters at which to calculate the log
likelihood, as a vector of length n.groups + 3*n.plates, of the form
( |
cells |
Number of cells per well. The |
n |
Vector giving the number of wells within each group. This may have length either n.groups (if all plates have the same number of wells per group) or n.groups*n.plates. |
n.plates |
The number of plates in the data. |
maxk |
Maximum k value in sum calculating |
Calculations are performed in a C routine.
loglik |
The log likelihood function calculated at the point
|
Karl W Broman, broman@wisc.edu
Broman et al. (1996) Estimation of antigen-responsive T cell frequencies in PBMC from human subjects. J Immunol Meth 198:119-132
npem.em()
data(p713)
start.pl3 <- npem.start(p713$counts[[3]],n=p713$n)
out.pl3 <- npem.em(p713$counts[[3]],start.pl3,n=p713$n)
npem.ll(p713$counts[[3]],start.pl3,n=p713$n)
npem.ll(p713$counts[[3]],out.pl3$ests,n=p713$n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.