gridProf: Profile log-likelihood of Dirichlet-multinomial model
Description
Computes the profile log-likelihood of $\ell(\pi,\theta;x)$
for a given sequence of $\theta$ by calling
estProfLogLik.
Usage
gridProf(data, theta, from, to, len)
Arguments
data
A matrix or table with counts. Rows represent subpopulations
and columns the different categories of the data. Zero rows or columns
are automaticly removed.
theta
A theta-value used as offset for the interval: [theta+from; theta+to].
from
Left endpoint in the interval: [theta+from; theta+to].
to
Right endpoint in the interval: [theta+from; theta+to].
len
Number of points in the [from; to] interval. Similar to the
len argument in seq.
Value
Gives a data frame with theta values and associated profile
log-likelihood values.