marg_pow | R Documentation |
Marginal log-likelihood and posterior density of discrete power law via numerical integration
marg_pow(df, lower, upper, m_alpha = 0, s_alpha = 10, by = 0.001)
df |
A data frame with at least two columns, x & count |
lower |
Real number greater than 1, lower limit for numerical integration |
upper |
Real number greater than lower, upper limit for numerical integration |
m_alpha |
Real number (default 0.0), mean of the prior normal distribution for alpha |
s_alpha |
Positive real number (default 10.0), standard deviation of the prior normal distribution for alpha |
by |
Positive real number, the width of subintervals between lower and upper, for numerical integration and posterior density evaluation |
A list: log_marginal
is the marginal log-likelihood, posterior
is a data frame of non-zero posterior densities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.