alphaCheck {eiwild} | R Documentation |
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
alphaCheck(mat, r, c)
mat |
matrix with alpha values |
r |
number of rows in the RxC-table |
c |
number of cols in the RxC-table |
alphamatrix if everything is okay. Error
-message if
something fails.
## 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)