find_mode {lazy.irtx} | R Documentation |
Find the mode of icrf
find_mode(param, print = 0)
param |
Item Paramter Data Frame |
print |
= 1 to print the result |
When item type is "P", the original step parameter b_k
is the intersection of P_k-1 and P_k, k=1,2,...,ncat-1 {cr
When item type is "G" , the mode of P_k is given as (b_k+b_k+1)/2 .
Note that, b_k is stored as p_k+1 in the param data frame
since p_1 is always the slope.
The modes of type "P" items and the intersections of type "G" or "B3"
items are found numerically.
The numerical root finding may result in an error.
A matrix of nitem x max(ncat) consisting of the modes
corresponding to the 0-th, 1st, 2nd, ..., and ncat-th category.
Note that the first (0) and the last (ncat) columns are filled with NAs.
mode <- find_mode( paramS1, print=1 )