get_credible_intervals: Get Credible Intervals

View source: R/ClusterModeling_modelfunctions.R

get_credible_intervalsR Documentation

Get Credible Intervals

Description

In a model created with fit_model() the pi parameters are the estimate of the true cluster fill count for a particular writer and cluster. The function get_credible_intervals() calculates the credible intervals of the pi parameters for each writer in the model.

Usage

get_credible_intervals(model, interval_min = 0.025, interval_max = 0.975)

Arguments

model

A model output by fit_model()

interval_min

The lower bound for the credible interval. The number must be between 0 and 1.

interval_max

The upper bound for the credible interval. The number must be greater than interval_min and must be less than 1.

Value

A list of data frames. Each data frame lists the credible intervals for a single writer.

Examples

get_credible_intervals(model=example_model_1chain)
get_credible_intervals(model=example_model_1chain, interval_min=0.05, interval_max=0.95)


handwriter documentation built on Oct. 13, 2023, 5:10 p.m.