protected | R Documentation |
Attempts to catch numerical erros in evaluating the expression x
, delivering a default result instead of NaN or other failures
protected(x,default=-Inf)
x |
expression to be evaluated, typically the log-likelihood of a modified mixture model |
default |
value to be delivered if numerical errors are encountered |
Returns -Inf in case of error, otherwise the value of x
Peter Green (P.J.Green@bristol.ac.uk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.