calc_summary_stats_trace: Calculates the Effective Sample Sizes of one estimated...

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculates the Effective Sample Sizes of one estimated variable's trace.

Usage

1
calc_summary_stats_trace(trace, sample_interval)

Arguments

trace

a numeric vector of values. Assumes the burn-in is 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_in to remove the burn-in of a trace

Examples

1
2
3
4
5
6
7
8
9
  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_trace(
    estimates$posterior,
    sample_interval = 1000
  )

  testit::assert("mean" %in% names(sum_stats))

ropensci/tracerer documentation built on May 14, 2019, 8:55 p.m.