npem.start | R Documentation |
Obtains crude starting values, needed for the EM algorithm.
npem.start(
y,
cells = 10^6,
n = c(24, 24, 24, 22),
n.plates = 1,
n.groups = 4,
n.sd = 2,
cv = 0.33
)
y |
Vector of transformed scintillation counts, in lexicographical order (plate by plate and group by group within a plate.) |
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. |
n.groups |
The number of groups. (This is needed here but not
elsewhere, because usually I figure it out from |
n.sd |
Number of SDs above the mean to use as a cutoff |
cv |
Coefficient of variation (= SD/ave) used in randomizing the starting point; use cv=0 to avoid randomization. |
[I should describe the algorithm in more detail here.]
ests |
The parameter estimates to use as starting values for
the EM algorithm, as a vector of length n.groups + 3*n.plates, of the form
( |
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,tol=1e-13)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.