H_bar | R Documentation |
Compute unbiased estimators based on coupled chains.
Presumably generated via sample_coupled_chains
.
The test function h should take a "chain_state" as argument and return a numeric vector. The estimand of interest is \int h(x) π(x) dx, where π is the invariant distribution of the chains.
The lag is inferred from the coupled chains, so there's no argument to specify it.
H_bar(c_chains, h = function(x) x, k = 0, m = 1)
c_chains |
A list containing coupled chains generated by |
h |
A test function of interest, which should take a chain state ("chain_state" entry of the output of "rinit", for instance) and return a numeric vector |
k |
An integer at which to start computing the unbiased estimator; should be less than m |
m |
A time horizon: should be less than the length of the chains; typically the same
m that was used in the call to |
A value (or vector of values) of an unbiased estimator of \int h(x) π(x) dx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.