Prior objects can be conditioned on lower or upper boundaries,
intervals, or single values to restrict their support.
Various shorthand notations are supported (see examples).
condition(prior, low = 0, high = 1) # S4 method for Prior condition(prior, low = 0, high = 1) prior %|% interval # S4 method for Prior,numeric %|%(prior, interval)
| prior |
|
|---|---|
| low | [optional] lower boundary to condition on |
| high | [optional] upper boundary to condition on |
#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.20,1.00](a=2.00,b=3.00)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.00,0.90](a=2.00,b=3.00)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.20,0.90](a=2.00,b=3.00)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.20,0.70](a=5.00,b=7.00)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type PointMass{Float64}. #> PointMass(0.50)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.00,0.50](a=5.00,b=7.00)#> An object of class "Beta" #> Slot "jprior": #> Julia Object of type Beta{Float64}. #> Beta|[0.20,1.00](a=5.00,b=7.00)