calc_summary_stats_traces {tracerer} | R Documentation |
Calculates the Effective Sample Sizes of the traces of multiple estimated variables.
calc_summary_stats_traces(traces, sample_interval)
traces |
a data frame with traces of estimated parameters. Assumes the burn-ins are removed. |
sample_interval |
the interval in timesteps between samples |
the effective sample sizes
Richèl J.C. Bilderbeek
Use remove_burn_ins
to remove the burn-ins
of all traces
estimates_all <- parse_beast_log(get_tracerer_path("beast2_example_output.log")) estimates <- remove_burn_ins(estimates_all, burn_in_fraction = 0.1) sum_stats <- calc_summary_stats_traces( estimates, sample_interval = 1000 ) testit::assert("mean" %in% colnames(sum_stats))