Functions for calculating the DA estimator - #62
Conversation
|
Hi, I am still trying to figure out many things and a few questions with regard to design have come up:
|
|
…ngth of the fine chain
|
Hi, I think this is ok now. I did some tests with the Multilevel Delayed Acceptance notebook setup and it works fine I think. |
mikkelbue
left a comment
There was a problem hiding this comment.
Looks good. I have a couple of stylistic suggestions. Please can you also run black on the code?
include suggestions Co-authored-by: Mikkel Bue <mikkelbue@gmail.com>
…to da_estimator
|
I had a thought about burnin: when I subtract the burnin in calculating the multilevel estimator, the burnin subtracted on the coarse level should be burnin*subchain_length, as burnin generally refers to the fine chain. I will adapt this accordingly. |
mikkelbue
left a comment
There was a problem hiding this comment.
Looks good. Please add some comments that explains what the code does throughout. Thanks!
| mean_difference = az.summary(values_difference, var_names=[variable]).loc[ | ||
| variable, "mean" | ||
| ] | ||
| mean_coarse = az.summary(values_coarse, var_names=[variable]).loc[variable, "mean"] |
There was a problem hiding this comment.
Why not just compute the mean directly rather than the entire summary and then extract the mean. There should be a faster way of doing this.
Co-authored-by: Mikkel Bue <mikkelbue@gmail.com>
Facilities for calculating the the MLDA estimator in the two-level case, as well as associated variances