View source: R/helpers_analysis.R
get_lambdas | R Documentation |
Takes as input the array of lambdas from the irt list, a vector of item names (can be taken from either Y_in or M_matrix), a vector of dimension names, and, optionally, a vector comprising elaborations about each item. Returns a list containing a data frame with the mean lambdas for each item-dimension pair, possibly attaching elaborations to each item's string, and a data frame with the items with the highest mean values of lambda for each dimension in order
get_lambdas(lambda_array, item_names, dim_names, item_elab = NULL)
lambda_array |
An array of dimension (K x d x nsamp/thin) containing posterior samples of item discrimination parameters. |
item_names |
Vector of item names. |
dim_names |
Vector of dimension names. |
item_elab |
A vector comprising elaborations about each item (Default = NULL). |
A list containing the following components:
av_lams |
A data frame of dimension (K x (1+d)) containing averages of item discrimination parameters. |
high_lams |
A data frame of dimension (K x d) containing an ordered list of the items with the highest mean values of lambda for each dimension. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.