calc_summary_stats_traces: Calculates the Effective Sample Sizes of the traces of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/calc_summary_stats.R

Description

Calculates the Effective Sample Sizes of the traces of multiple estimated variables.

Usage

1
calc_summary_stats_traces(traces, sample_interval)

Arguments

traces

a data frame with traces of estimated parameters. Assumes the burn-ins are removed.

sample_interval

the interval in timesteps between samples

Value

the effective sample sizes

Author(s)

Richèl J.C. Bilderbeek

See Also

Use remove_burn_ins to remove the burn-ins of all traces

Examples

1
2
3
4
5
6
7
8
9
estimates_all <- parse_beast_tracelog_file(
  get_tracerer_path("beast2_example_output.log")
)
estimates <- remove_burn_ins(estimates_all, burn_in_fraction = 0.1)

calc_summary_stats_traces(
  estimates,
  sample_interval = 1000
)

tracerer documentation built on May 30, 2021, 5:06 p.m.