alphaCheck: alphaCheck function

Description Usage Arguments Value Examples

Description

Given starting values for the alpha values of the dirichlet distribution of the second level of the ecological inference model alphaCheck checks if parameters are correctly specified

Usage

1
alphaCheck(mat, r, c)

Arguments

mat

matrix with alpha values

r

number of rows in the RxC-table

c

number of cols in the RxC-table

Value

alphamatrix if everything is okay. Error-message if something fails.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# right alpha matrix
alphaRight <- matrix(1:9, 3,3)
alphaCheck(alphaRight, 3, 3)
# return is right alpha matrix

# wrong alpha matrix
alphaWrong <- matrix(0:8, 3,3)
alphaCheck(alphaWrong, 3,3)
alphaCheck(alphaRight, 3,4)

## End(Not run)

eiwild documentation built on May 2, 2019, 6:31 p.m.

Related to alphaCheck in eiwild...