Questions tagged [r-mice]

Multiple imputation using Fully Conditional Specification (FCS) implemented by the MICE algorithm. Each variable has its own imputation model. Built-in imputation models are provided for continuous data (predictive mean matching, normal), binary data (logistic regression), unordered categorical data (polytomous logistic regression) and ordered categorical data (proportional odds).

mice is an package for R, written by Stef van Buuren. The mice package implements a method to deal with [tag: missing data].

Repositories

Vignettes (Overview)

Further reading

Other resources

Related packages

Related tags

551 questions
0
votes
1 answer

Residuals sum of squared for multiple imputation using mice package in R

With the mice package, how do we check for the residuals sum of squared of the pooled analysis? library(mice) imp <- mice(nhanes, seed = 24500) fit <- with(imp, lm(chl ~ age + bmi)) pool(fit) summary(pool(fit)) fit contains the analysis for each…
Ali
  • 1
  • 4
0
votes
0 answers

How to (pool) combine RMSE values that resulted from regression algorithms of multiple imputed data set

I have a small dataset (280 rows) with missing values. I used multiple imputations (mice package, m=5) to impute my data set. Then, I applied different regression algorithms (i.e. SVM, rpart..etc) using 10-fold cross validation to each imputed…
Zee H
  • 23
  • 5
0
votes
0 answers

Parallelizing step() on multiple imputed datasets

I am working on a large dataset that contains missing data, and use the mice package in R for multiple imputation. Having created 10 imputed datasets, I want to do stepwise model selection on each of them (see also…
Sanderr
  • 109
  • 3
0
votes
0 answers

Error message when using as.mids2

I'm trying to pool results from a multiple imputation database created in SPSS by using the miceadds package in R (I'm quite new to R so sorry if the terminology is a little off). When I try to change the database to a mids object using the as.mids2…
MEW
  • 1
0
votes
1 answer

Unclear error with mice package

I'm using the mice package to interpolate some missing values. I've successfully been using mice in many cases without any problem. However I am now facing an unprecedented problem, that is, after the first iteration I get the following…
mickkk
  • 1,172
  • 2
  • 17
  • 38
0
votes
0 answers

Apply a set of missing function to a data set in R

Recently I have came across the package validate in R which is very useful when you want to validate a full data set with pre-defined rules, say for example: v <- validator( Species.na = !is.na(Species), Species.range = Species %in% c("setosa",…
0
votes
2 answers

How to impute continuous value using categorical value

I have missing values in a continuous vector y <- c(8, 7, NA, 4, 6) I have zip code x <- factor(c("94562", "98705", "94122", "94539", "94122")) I would like to use zip code to impute y. I have tried library(mice) mice.impute.norm(y = y, ry =…
Scott
  • 642
  • 7
  • 16
0
votes
1 answer

Problems with pooling Multiply Imuputed datasets, of multilevel logistic models, using R (MICE) - missing coefficent

I am having problems with the MICE package in R, particularity with pooling the imputed data sets. I am running a multilevel binomial logistic regression, with Level1 - topic (participant response to 10 questions on different topics, e.g. Darkness,…
j.halls
  • 3
  • 1
0
votes
1 answer

How to select rows with certain missing pattern?

So I have a dataset that contains a lot of missing values. I want to separate the data of different missing patterns. I found the package 'mice' which is very handy in summarizing the missing value patterns. However, when I want to select the rows…
StatCC
  • 285
  • 3
  • 11
0
votes
1 answer

Extracting Kaplan-Meier step function

What I am trying to do is to fit 5 Kaplan Meier curves on 5 imputed datasets from MICE. What I aim to do is at every time point, take the average of the 5 survival probabilities. I think this would be easy if I had the exact form of the step…
RayVelcoro
  • 524
  • 6
  • 21
0
votes
1 answer

MICE imputation even when same data in column

Is it possible to get an imputation using the package MICE even when all the values in the column are the same? Then it would impute just with that number.…
PrincessJellyfish
  • 149
  • 1
  • 1
  • 9
0
votes
2 answers

Combining Imputed Data After Cox Model

I want to impute some missing data in table, and run the Cox Model on the imputed table. I can get the imputation to run on my data, and the cox model to run on the imputed data, but I don't understand how to view the cox output from the data set,…
user1288515
  • 195
  • 1
  • 10
0
votes
3 answers

How to combine multiply imputed data with mice?

I split a dataset into men and women, and then separately imputed it using the mice package. #Generate predictormatrix pred_gender_0<-quickpred(data_gender_0, include=c("age","weight_trunc"),exclude=c("ID","X","gender"),mincor =…
SEMson
  • 1,285
  • 3
  • 20
  • 25
0
votes
0 answers

Adding imputation function in mice

I recently fitted a Graded Response Model to my data using R's latent trait modelling package. I tried to add my fitted Graded response model in mice package to impute missing data but i am failing to access the mice algorithm to edit. My question…
tonderai
  • 1
  • 3
-1
votes
1 answer

How to do t-test after matching in MatchThem

Through matchthem(), I have got matched.datasets. Then I want to check the balance of covariates between two matched groups through t-test or p-value. But the cobalt package could not show p-value or t-test results.
1 2 3
36
37