View source: R/get_TIRT_long_data.R
get_TIRT_long_data | R Documentation |
To estimate the TIRT model using the thurstonianIRT Package, the pairwise/rank data needs to be converted into long format. Current function serves as that purpose.
get_TIRT_long_data(
block_info,
response_data,
response_varname,
format = "pairwise",
partial = FALSE,
direction = "larger",
family = "bernoulli",
range = c(0, 1),
block_name = "Block",
item_name = "ID",
trait_name = "Factor",
sign_name = "Reversed",
verbose = TRUE
)
block_info |
Information data frame related to keying, dimension, and ID of each item in each block |
response_data |
TIRT pairwise/rank response data. |
response_varname |
Column names of TIRT pairwise/ranked responses. Can be generated from |
format , direction , family , range |
These parameters works the same as |
block_name , item_name , trait_name , sign_name |
These parameters indicate the column names in
|
verbose |
Logical. Should warning message be displayed? |
This function is essentially a wrapper of thurstonianIRT::make_TIRT_data()
to allow more functionalities to be incorporated in a single function.
A long format data frame that is compatible with subsequent analyses using the thurstonianIRT package
Mengtong Li
thurstonianIRT::set_blocks_from_df()
, thurstonianIRT::make_TIRT_data()
## See example in convert_to_TIRT_response() for FC_resp
## This example is just for demonstrative purposes showing how the long format data would look like.
## Not run: get_TIRT_long_data(block_info = triplet_block_info,
response_data = FC_resp[,c(1:15)], response_varname = build_TIRT_var_names("i", 3, 5, format = "pairwise"),
trait_name = "Factor", sign_name = "Keying")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.