plotHyperDist: plot prior and posterior distribution of hyperparameters

Description Usage Arguments Value Examples

View source: R/plotHyperDist.R

Description

plotHyperDist plot prior and posterior distribution of hyperparameters

Usage

1
plotHyperDist(resExPrior)

Arguments

resExPrior

output from the genExPrior function

Value

a plot

Examples

1
2
3
4
5
6
exdata <- data.frame(val=c(c(2,3,4),c(2,1),c(6,7,2,3)),
                  site_id=c(rep("a",3),rep("b",2),rep("c",4)),
                  x = c(c(2,3,4),c(2,3),c(2,2,3,3)),
                  y = c(c(2,2,3),c(3,2),c(2,3,2,3)))
ex_prior <- genExPrior(exdata=exdata,theta=seq(from=-5,to=5,by=1))
plotHyperDist(ex_prior)

exPrior documentation built on Nov. 15, 2019, 1:07 a.m.