FBD_summary | R Documentation |
Produces numerical summaries of each fossilized birth–death process (FBD) posterior parameter by time bin.
FBD_summary(posterior, file = NULL, digits = 3)
posterior |
A data frame of posterior parameter estimates containing a single "Time_bin" column and one column for each FBD parameter value. Such data frame can be imported using |
file |
An optional file path where the resulting table will be stored using |
digits |
The number of digitis to round the summary results to. Default is 3. See |
A data frame with a row for each paramater and time bin, and columns for different summary statistics. These include the number of data points (n
) and the mean, standard deviation (sd
), minimum value (min
), first quartile (Q1
), median, third quartile (Q3
), and maximum value (max
). When file
is not NULL
, a .csv file containing this data frame will be saved to the filepath specified in file
and the output will be returned invisibly.
vignette("fbd-params")
for the use of this function as part of an analysis pipeline.
combine_log
for producing a single data set of parameter posterior samples from individual parameter log files.
FBD_reshape
for converting posterior parameter table from wide to long format.
FBD_dens_plot
, FBD_normality_plot
, FBD_tests1
, and FBD_tests2
for other functions used to summarize and display the distributions of the parameters.
# See vignette("fbd-params") for how to use this # function as part of an analysis pipeline data("posterior3p") posterior3p_long <- FBD_reshape(posterior3p) FBD_summary(posterior3p_long)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.