View source: R/dimarAssignPattern.R
dimarAssignPattern | R Documentation |
Assigns patterns of MVs to reference data set with a logistic regression model
dimarAssignPattern(ref, coef, mtx = NULL, npat = NULL)
ref |
Reference dataset |
coef |
Logistic regression coefficients of missing value pattern |
mtx |
Quantitative matrix |
npat |
Number of patterns |
Reference dataset with applied pattern
mtx <- matrix(rnorm(1000),nrow=100)
mtx[sample(c(1:1000),100)] <- NA
coef <- dimarLearnPattern(mtx)
ref <- dimarConstructReferenceData(mtx)
sim <- dimarAssignPattern(ref, coef, mtx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.