prior.two.parameters: Construct discrete uniform prior for two parameters

Description Usage Arguments Value Author(s) Examples

Description

Constructs a discrete uniform prior distribution for two parameters

Usage

1
prior.two.parameters(parameter1, parameter2)

Arguments

parameter1

vector of values of first parameter

parameter2

vector of values of second parameter

Value

matrix of uniform probabilities where the rows and columns are labelled with the parameter values

Author(s)

Jim Albert

Examples

1
prior.two.parameters(c(1,2,3,4),c(2,4,7))

Example output

           2          4          7
1 0.08333333 0.08333333 0.08333333
2 0.08333333 0.08333333 0.08333333
3 0.08333333 0.08333333 0.08333333
4 0.08333333 0.08333333 0.08333333

LearnBayes documentation built on May 1, 2019, 7:03 p.m.