alphaCheck {eiwild}R Documentation

alphaCheck function

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

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

## 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)

[Package eiwild version 0.6.7 Index]