Description Usage Arguments Value Examples
A function to retuen the mean and SD of the posterior of one or more parameters from a BayesTraits analysis.
1 | getPostStats(logfile, params, thinning = 1, burnin = 0)
|
logfile |
The name of the logfile from a BayesTraits analysis. |
params |
A vector of one or more parameters of interests (e.g. a subset of getParams output) |
thinning |
Thinning parameter for the posterior - defaults to 1 (all samples). 2 uses every second sample, 3 every third and so on. |
burnin |
The number of generations to remove from the start of the chain as burnin. |
A data frame of 3 columns, the parameter name, the mean of the parameter and its standard deviation.
1 2 3 | params <- getParams("cool-data.log.txt")
getPostMean("cool-data.log.txt", params[c(2:5)]
getPostMean("cool-data.log.txt", "Lh")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.