Skip to contents

Creates a flat (improper uniform) distribution object for use with prior(). A flat prior assigns equal probability density to all values, which is improper (does not integrate to 1) but can be used when the likelihood provides sufficient information for identification.

Usage

flat()

Value

An object of class "clm_dist" representing a flat distribution.

Note

Flat priors are supported for:

  • Regression coefficients (class "b")

  • Threshold classes ("Intercept", "c1", "cpos")

Using flat priors may lead to improper posteriors if the likelihood does not provide sufficient information. For thresholds with ordered constraints, Stan's internal transformation provides implicit regularization.

Examples

# Create a flat prior for regression coefficients
prior(flat(), class = "b")
#> Prior: flat()
#> Class: b

# Flat prior for thresholds (flexible)
prior(flat(), class = "Intercept")
#> Prior: flat()
#> Class: Intercept