Description Usage Arguments Value Author(s)
Calculate the negative log-likelihood of the parameters k
and lambda
given count data. Returns the negative log-likelihood.
Will be called by nlm()
or similar. Data are in a data frame tibble format rather
than matrix format (as in negLL_Weibull_counts_matrix()
) since the matrix
will always be upper triangular (so using a long data frame should be
faster), and data frame is easier to obtain from real data. This is also set up
to do confidence intervals (unlike negLL_Weibull_counts_matrix()
).
1 2 3 4 5 6 | negLL_Weibull_counts_tibble(
p = c(3, 15),
h_nr_tibble,
k_MLE = NULL,
lambda_MLE = NULL
)
|
p |
vector of parameter values |
h_nr_tibble |
tibble of counts of numbers of individuals whose case was
reported on day |
k_MLE |
fixed value of |
lambda_MLE |
fixed value of |
negative log-likelihood of the parameters given the data
Andrew Edwards
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.