R/SE.R

Defines functions SE

Documented in SE

#' @title Federated IRT SE
#' @description Calculates Standard Error(SE) for FedIRT models.
#' @details Input is the object of fedirt class.
#' @param fedresult fedirt result object
#' @return An array of standard errors for all parameters.
#'
#' @examples
#' # turn input data to a list
#' inputdata = list(as.matrix(example_data_2PL))
#' # Call fedirt() function, and use 2PL model
#' fedresult = fedirt(inputdata, model_name = "2PL")
#' # get SE result
#' SEresult = SE(fedresult)

#' @importFrom purrr map
#' @importFrom pracma quadl
#' @importFrom stats optim

#' @export
#'
#'
SE = function(fedresult) {
  result = fedresult$SE
  return(result)
}

Try the FedIRT package in your browser

Any scripts or data that you put into this service are public.

FedIRT documentation built on Sept. 30, 2024, 9:34 a.m.