Description Usage Arguments Details Examples
This function provide an estimation of Pi and Delta for each category. To do so, it is needed to solve the non-linear equation of B, given by the function GetB.
1 | GetDeltaPi(mx, dtp, tol = 1e-12, maxits = 1000, original.mx = TRUE)
|
mx |
Matrix. Modified matrix to have a solution. Usually GetMx$M1 for k>2 and GetMx$M2 in case of k = 2. |
dtp |
String. Type of delta problem. |
tol |
Double number. Indicate the precision of the numeric method to calculate B. Expected to be 1e-6 <= tol <= 1e-15.Default is 1e-12. |
maxits |
Whole number. Indicate the maximum number of iterations of the numeric method to calculate B. Expected to be 100 <= maxits <= 5000. Default is 1000. |
original.mx |
Boolean. Indicate if the dtp parameter correspond to the current mx parameter. By default TRUE. |
In some type of problems, the solution is on the borderline, and in those situation we may have not solutions at all, only one or infinity of them.
1 2 3 | GetDeltaPi(mx = matrix(c(1,0,0,0,2,0,0,0,3),3,3), dtp = "DN0", tol = 1e-12, maxits = 1000)
GetDeltaPi(mx = matrix(c(1.5,2.5,0.5,3.5,4.5,0.5,0.5,0.5,1.5),3,3), dtp = "DN2",
tol = 1e-12, maxits = 1000, original.mx = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.