bpt_logl | R Documentation |
A function to calculate the log-likelihood of BPT model
bpt_logl(param, x)
param |
parameters of BPT model |
x |
input data for BPT model |
returns the value of negative log-likelihood of the BPT model
set.seed(42) data <- rgamma(30,3,0.01) # set some parameters par_hat <- c(292.945125794581, 0.718247184450307) # estimated parameters param <- c(log(par_hat[1]),log(par_hat[2]^2)) # input parameters for logl function # calculate log-likelihood result <- marp::bpt_logl(param, data) # print result cat("-logl = ", result, "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.