Learn R Programming

LearnBayes (version 2.15.2)

howardprior: Logarithm of Howard's dependent prior for two proportions

Description

Computes the logarithm of a dependent prior on two proportions proposed by Howard in a Statistical Science paper in 1998.

Usage

howardprior(xy,par)

Value

value of the log posterior

Arguments

xy

vector of proportions p1 and p2

par

vector containing parameter values alpha, beta, gamma, delta, sigma

Author

Jim Albert

Examples

Run this code
param=c(1,1,1,1,2)
p=c(.1,.5)
howardprior(p,param)

Run the code above in your browser using DataLab