Sample value from a given prior sampling formula object

sample_prior(f)

Arguments

f

Formula-based prior sampling expression such as <variable> ~ <sampling statement>

Value

A list of two elements: "variable" containing the name of the sampled variable, and "value" containing the actual value of the sampled prior.