parameter_samples: Extract the parameters from the samples data frame

Description Usage Arguments Details Value

Description

Pulls out the columns that corresponds sampled parameters rather than the probabilities, that is it returns a data frame without the "log.prior", "log.likelihood" and "log.posterior" columns.

Usage

1

Arguments

samples

Data frame with samples from a CoalHMM MCMC.

Details

For packages that implements convergence diagnostics, such as coda, we need the samples with only the parameters and not the prior and posterior probabilities or the likelihood.

This function simply returns that from a data frame of samples as output by the CoalHMM MCMC samplers.

Value

The samples containing only the parameter columns.


mailund/coalhmm-analysis documentation built on May 21, 2019, 11:06 a.m.