Description Usage Arguments Value Examples
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
1 | 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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.