DISR | R Documentation |
Caculate the estimator on the DISR method
DISR(data = 0, data0, real = TRUE, example = FALSE, D)
data |
is the orignal data set |
data0 |
is the missing data set |
real |
is to judge whether the data set is a real missing data set |
example |
is to judge whether the data set is a simulation example |
D |
is the number of nodes |
XDISR |
is the estimator on the DISR method |
MSEDISR |
is the MSE value of the DISR method |
MAEDISR |
is the MAE value of the DISR method |
REDISR |
is the RE value of the DISR method |
GCVDISR |
is the GCV value of the DISR method |
timeDISR |
is the time cost of the DISR method |
library(MASS) n=100;p=10;per=0.1 X0=data=matrix(mvrnorm(n*p,0,1),n,p) m=round(per*n*p,digits=0) mr=sample(1:(n*p),m,replace=FALSE) X0[mr]=NA;data0=X0 DISR(data=data,data0=data0,real=FALSE,example=FALSE,D=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.