Description Usage Arguments Details Value Author(s) See Also Examples
A nice wrapper for the poilogMLE
function.
1 | texmex.fit(n, start.mus=c(-2.0, -1.0, 0.0, 1.0, 2.0), start.sigs=rep(1.0, times=5), ...)
|
n |
vector of observed counts |
start.mus |
vector of starting |
start.sigs |
vector of starting |
... |
further parameters to go to |
It can be a little annoying to direclty use poilogMLE
: the optimization can
fail to converge if you choose a bad starting mu
value. This function makes
multiple attempts at fitting the poilog distribution, returning the first one that
works.
For the first attempt, the first mu
and sig
are used as starting values.
For the second attempt, the second elements of those vectors, etc.
par |
Maximum likelihood estimates of the parameters |
p |
Approximate fraction of OTUs revealed by the sample |
logLval |
Log likelihood of the data given the estimated parameters |
Scott Olesen swo@mit.edu
1 2 3 4 5 | # create some random data
x <- rpoilog(S=1000, mu=-2.0, sig=2.0, keep0=FALSE)
# fit that data
res <- texmex.fit(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.