The mi.lori performs M multiple imputations using the lori method. Multiple imputation allows to produce estimates of missing values, as well as intervals of variability. The classical procedure is to perform M multiple imputations using the mi.lori method, and to aggregate them using the pool.lori method.
mi.lori(
Y,
cov = NULL,
lambda1 = NULL,
lambda2 = NULL,
M = 25,
intercept = T,
reff = T,
ceff = T,
rank.max = 5,
algo = c("alt", "mcgd"),
thresh = 1e-05,
maxit = 1000,
trace.it = F
)[matrix, data.frame] count table (nxp).
[matrix, data.frame] design matrix (np*q) in order row1xcol1,row2xcol2,..,rownxcol1,row1xcol2,row2xcol2,...,...,rownxcolp
[positive number] the regularization parameter for the interaction matrix.
[positive number] the regularization parameter for the covariate effects.
[integer] the number of multiple imputations to perform
[boolean] whether an intercept should be fitted, default value is FALSE
[boolean] whether row effects should be fitted, default value is TRUE
[boolean] whether column effects should be fitted, default value is TRUE
[integer] maximum rank of interaction matrix (smaller than min(n-1,p-1))
type of algorithm to use, either one of "mcgd" (mixed coordinate gradient descent, adapted to large dimensions) or "alt" (alternating minimization, adapted to small dimensions)
[positive number] convergence tolerance of algorithm, by default 1e-6.
[integer] maximum allowed number of iterations.
[boolean] whether convergence information should be printed
a list of length M containing the imputed count tables
a (Mxn) matrix containing in rows the estimated row effects (one row corresponds to one single imputation)
a (Mxp) matrix containing in rows the estimated column effects (one row corresponds to one single imputation)
a (Mxq) matrix containing in rows the estimated effects of covariates (one row corresponds to one single imputation)
a list of length M containing the estimated interaction matrices
a list of length M containing the estimated Poisson means
list of bootstrapped count tables used fot multiple imputation
original incomplete count table
# NOT RUN {
X <- matrix(rnorm(50), 25)
Y <- matrix(rpois(25, 1:25), 5)
res <- mi.lori(Y, X, 10, 10, 2)
# }
Run the code above in your browser using DataLab