Displaying 7 results from an estimated 7 matches for "predictormatrix".
2008 Oct 14
1
library MICE warning message
...ta, im=c("","pmm","logreg","logreg"),m=5)
for a variable with no missing data, a numeric one and two variables with binary data.
I got the following message:
There were 37 warnings (use warnings() to see them)
> warnings()
Warning messages:
1: In any(predictorMatrix[j, ]) ... : coercing argument of type 'double' to logical
2: In any(predictorMatrix[, j])
... : coercing argument of type 'double' to logical
3: In any(predictorMatrix[j, ]) ... : coercing argument of type 'double' to logical
4: In any(predictorMatrix[j, ]) ... : coercing a...
2008 Jul 09
0
problems using mice()
...Warnungen (Anzeige der ersten 50 mit
warnings())
1 1 variablenameError in impute.logreg(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L,
2L, 2L, 1L, 2L, :
dimensions [product 119] don`t match lenght of object [122]
Additional: 50 or more warnings (show first 50 with warnings())
warnings()
1: In any(predictorMatrix[j, ]) ... : wandle Argument des Typs 'double' nach
boolesch
1: In any(predictorMatrix[j, ]) ... : transform argument of type 'double' to
boolesch
I would be very happy if somebody could help me to fix this.
Thanks in advance.
B.
-----
The art of living is more like wrestling tha...
2011 Oct 10
1
Multiple imputation on subgroups
Dear R-users,
I want to multiple impute missing scores, but only for a few subgroups in my
data (variable 'subgroups': only impute for subgroups 2 and 3).
Does anyone knows how to do this in MICE?
This is my script for the multiple imputation:
imp <- mice(data, m=20, predictorMatrix=pred, post=post,
method=c("", "", "", "", "","norm", "norm","norm","norm","norm","norm"),
maxit=20) .
The final analysis should be on the dataset as a whole, so with subgroups 2
and 3...
2018 May 23
0
MICE passive imputation formula
...'s give an example with BMI. I know, that if I want to use passive imputation for BMI, I can use the following command:
meth["BMI"] <- "~I(weight/(height/100)^2)"
pred[c("weight", "length"), "BMI"] <- 0
imp <- mice(Data, method = meth, predictorMatrix = pred, maxit = 10, m = 5)
But what If the formula for a variable is much more complicated, like with CKD-epi. The formula is:
egfr_crea_ckdepi = function(creatinine, age, is_female, is_male) {
if (length(creatinine) != length(age) ||
length(creatinine) != length(is_female) ||
lengt...
2013 Oct 30
1
disculpe las molestias ...ayuda con MICE
...sex age educ2 hisp race inc weight
> standwt
> "polyreg" "polyreg" "polyreg" "polyreg" "polyreg" "polyreg" "polyreg"
> "polyreg"
> VisitSequence:
> pial4
> 15
> PredictorMatrix:
> ï..psraid sample state cregion usr pial1a pial1b pial1c pial1d
> pial1e pial2 pial3a pial3b pial3c pial4 employ par sex age educ2 hisp race
> inc weight standwt
> ï..psraid 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0...
2013 Oct 30
0
disculpe las molestias ...ayuda con MICE
...;polyreg" "polyreg"
sex age educ2 hisp race inc weight
standwt
"polyreg" "polyreg" "polyreg" "polyreg" "polyreg" "polyreg" "polyreg"
"polyreg"
VisitSequence:
pial4
15
PredictorMatrix:
ï..psraid sample state cregion usr pial1a pial1b pial1c pial1d
pial1e pial2 pial3a pial3b pial3c pial4 employ par sex age educ2 hisp race
inc weight standwt
ï..psraid 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0...
2013 Oct 30
2
disculpe las molestias ...ayuda con MICE
Saludo gente, antes que nada gracias por la ayuda que puedan aportarme, soy
iniciante en R, estoy usando el paquete Mice para realizar imputaciones
múltiples sobre variables en su mayoría categóricas. El problema está que
cuando expresó este comando imp <- mice(dataset,method="polr",maxit=1)
donde el dataset es un data.frame me tirá este error :
iter imp variable
1 1 pial1a