Description Usage Arguments Value Examples
Evaluate a (unnormalized) smoothed BETEL density at parameter
values th
given the model
(list) generated by init_sbetel()
and the data xy
.
A wrapper for c++ implementation.
1 | eval_sbetel(th, model, xy = model$args$xy, td = 0, itermax = 20)
|
th |
A numerical vector of parameter values. |
model |
A list returned by |
xy |
The data for which the density is coniditoned on. Defaults to the
data passed to |
td |
The number of rows of prior data, i.e. the number of rows from the beginning of the data that should not be smoothed. |
itermax |
Maximum number of Newton-Rhapson iterations within the evaluation of the likelihood. Defaults to 20 which should be more than enough. |
eval_sbetel()
returns a numerical value that is the unnormalized
density at th
conditional on xy
.
1 2 3 4 | ## Not run:
eval_sbetel(th = model$initial(model$args$xy)$th, model = model, xy = model$args$xy)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.