Skip to content

Commit 38b1eb5

Browse files
20260207 - clean up
1 parent 0ec9cbb commit 38b1eb5

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ export(error_variance_4PL)
3636
export(error_variance_NB)
3737
export(fourPL)
3838
export(getDependencies)
39+
export(get_thresholds)
3940
export(imputationCombine)
4041
export(imputationModelCompare)
4142
export(imputationPRV)
4243
export(info_neg_binom_analytical)
4344
export(itemInformation)
45+
export(itemInformationGRM)
4446
export(item_info_NB_analytical)
4547
export(item_info_NB_zero_analytical)
4648
export(kish_ess)

R/itemInformationGRM.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#' be provided either as a vector (for a given item) or as a list (for multiple
1515
#' items).
1616
#' @param theta Person's level on the construct.
17+
#' @param x Dataframe.
1718
#'
1819
#' @return
1920
#' \code{calc_grm_probs()} returns the probability of each response category;
@@ -70,6 +71,8 @@
7071
#' theta = -4:4)
7172
#'
7273

74+
#' @rdname itemInformationGRM
75+
#' @export
7376
# Calculate probability of each response category
7477
calc_grm_probs <- function(a, b_thresholds, theta) {
7578
if (!is.list(b_thresholds)) b_thresholds <- list(b_thresholds)
@@ -94,6 +97,8 @@ calc_grm_probs <- function(a, b_thresholds, theta) {
9497
return(probs_list)
9598
}
9699

100+
#' @rdname itemInformationGRM
101+
#' @export
97102
# Calculate item information
98103
itemInformationGRM <- function(a, b_thresholds, theta) {
99104
if (!is.list(b_thresholds)) b_thresholds_ <- list(b_thresholds)
@@ -123,6 +128,8 @@ itemInformationGRM <- function(a, b_thresholds, theta) {
123128
return(info_list)
124129
}
125130

131+
#' @rdname itemInformationGRM
132+
#' @export
126133
# Helper function to extract thresholds from item parameters data frame
127134
get_thresholds <- function(x) {
128135
if (is.data.frame(x)) {
Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)