get_TIRT_long_data {autoFC} | R Documentation |
Convert the TIRT Pairwise/Rank Response Data into Long Format Compatible with the thurstonianIRT Package
Description
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.
Usage
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"
)
Arguments
block_info |
Information data frame related to keying, dimension, and ID of each item in each block.
The order of the rows in |
response_data |
TIRT pairwise/rank response data. |
response_varname |
Column names of TIRT pairwise/ranked responses. Can be generated from |
format , direction , family , range , partial |
These parameters works the same as |
block_name , item_name , trait_name , sign_name |
These parameters indicate the column names in
|
Details
This function is essentially a wrapper of thurstonianIRT::make_TIRT_data()
to allow more functionalities to be incorporated in a single function.
Value
A long format data frame that is compatible with subsequent analyses using the thurstonianIRT package
Author(s)
Mengtong Li
See Also
thurstonianIRT::set_blocks_from_df()
, thurstonianIRT::make_TIRT_data()
Examples
## 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)