View source: R/iterativeproportionalfitting.R
ipf | R Documentation |
Iterative Proportional Fitting (ipf)
ipf(
X = matrix(),
Xhat = matrix(0.5, nrow = nrow(X), ncol = ncol(X)),
Delta = 1,
func = function(i, j, A, B, Delta) {
1
},
anchor = NULL,
v = 1
)
X |
A matrix, e.g. of persons responses (rows) to items (columns) |
Xhat |
Initial values of the solution (optional). Defaults to 0.5 in all cells |
Delta |
Interaction parameters. A matrix or scalar. Defaults to 1. |
func |
A function of parameters i, j (row and column numbers), A, B (current estimations), and Delta. |
anchor |
A function to anchor A or B estimates. Defaults to NULL. |
v |
Verbose level (0: none, 1: progression, 2: verbose) |
This function does the estimation. Used by specific estimation functions.
Returns a list of estimates Ahat, Bhat, and Xhat
Jeppe Bundsgaard & Svend Kreiner
Svend Kreiner (manuscript, 2023). Appendix H - Estimation of Rasch parameters by iterative proportional fitting.
X<-matrix(data=c(0,0,0,1,1,1,0,1,0,0,0,1,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.