Description Usage Arguments Value Examples
View source: R/joint.negllSS.flex.R
Uses data from a competition experiment starting with an initial fraction of 0.5 and from a stability assay to compute the joint negative log-likelihood for the Segregation Selection model, under binomial sampling
1 2 3 4 5 6 7 8 9 | joint.negllSS.flex(
parm,
data.compet,
data.stabexp,
nrc,
nrepexp,
gen,
neg.cost = TRUE
)
|
data.compet |
is a matrix for the competition experiment. The first column are the days, the next columns are the counts over time of the plasmid-free colonies (one column per replicated platings), followed by the same number of columns with the total number of colonies picked per replicate, per day. |
data.stabexp |
is a matrix for the stability experiment. The first column are the days, the next columns are the counts over time of the plasmid-free colonies (one column per replicated platings), followed by the same number of columns with the total number of colonies picked per replicate, per day. |
nrc |
The number of replicated platings for the competition experiment. |
nrepexp |
The number of replicated platings for the stability experiment. |
gen |
Number of generations per day |
neg.cost |
Logical. If TRUE, then assumes cost is between -1 and 0. |
parm=c(beta.o, lam, sig) |
which are the initial fraction of plasmid free cells, segregation rate and the plasmid cost. All three parameters must be specified according to the inverse transform of either the 1/(1+e^(-x)) or the -1/(1+e^(-x)) functions. |
the negative log-likelihood
1 | joint.negllSS.flex(parm, data.compet, data.stabexp,nrc,nrepexp, gen,neg.cost=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.