Description Usage Arguments Value Author(s) References See Also Examples

Calculate the log likelihood of an rcppbugs object based on the current state of the dependant(upstream) objects in the chain.

1 | ```
logp(x)
``` |

`x` |
any stochastic rcppbugs object |

a double precision value indicating the total log likelihood of the object.

rcppbugs was written by Whit Armstrong.

https://github.com/armstrtw/CppBugs

1 2 3 4 5 6 7 8 | ```
NR <- 100
NC <- 2
b <- mcmc.normal(rnorm(NC),mu=0,tau=0.0001)
tau.y <- mcmc.gamma(runif(1),alpha=0.1,beta=0.1)
logp(b)
logp(tau.y)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.