print.prior: Print Prior Distribution

Description Usage Arguments Value Examples

View source: R/prior.R

Description

a convenient function to rearrange p.prior or an element in a pp.prior as a data frame for inspection.

Usage

1
2
## S3 method for class 'prior'
print(x, ...)

Arguments

x

a list of prior distributions list, usually created by BuildPrior

...

other arguments

Value

a data frame listing prior distributions and their settings

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
pop.mean  <- c(a=1,  v.f1=1,  v.f2=.2, z=.5, sz=.3,  sv.f1=.25, sv.f2=.23,
               t0=.3)
pop.scale <- c(a=.2, v.f1=.2, v.f2=.2, z=.1, sz=.05, sv.f1=.05, sv.f2=.05,
               t0=.05)

p.prior <- BuildPrior(
  dists = rep("tnorm", 8),
  p1    = pop.mean,
  p2    = pop.scale,
  lower = c(0, -5, -5, 0, 0, 0, 0, 0),
  upper = c(2,  5,  5, 1, 2, 2, 1, 1))

print(p.prior)

ggdmc documentation built on Sept. 2, 2018, 1:03 a.m.