search for: newprimal

Displaying 3 results from an estimated 3 matches for "newprimal".

2010 Jul 28
0
nlme: augPred.lme for factor covariates
Hi everybody, as you may be aware the function augPred.lme does not work as soon as the covariate is a factor. The problem lies in the line newprimary <- seq(from = minimum, to = maximum, length.out = length.out) which does not make sense for factors. I think augPred.lme can be useful for models with a factor covariate as well. Thus, I propose to change the code to: augPred.lme <-
2011 Apr 08
1
Package mice: Error in if (meth[j] != "") { : argument is of length zero
...couple of days ago and it was working fine; I can't, however, remember the version of R that I was using but it was either R-2.11.1 or R-2.12.1. Please find below my code and error. Any thoughts or ideas? > library(mice) # setting up the default settings for the imputation ini <- mice(NewPrimal, seed = 52275, method = "norm", maxit=0, pred = quickpred(NewPrimal, mincor = 0.25, minpuc = 0.95, include = c("D1", "D2", "D3",...
2011 Apr 01
0
package MICE, squeeze function, calling several variables at once
..., stringsAsFactors = TRUEdfPZ <- df[ ,1:3]dfDV <- df[ ,277:311]dfPtemp <- df[ ,seq(4, 275, by = 2)]dfP <- dfPtemp[, sapply(dfPtemp, function(x) !all(is.na(x)))]dfQtemp <- df[ ,seq(5, 275, by = 2)]dfQ <- dfQtemp[, sapply(dfQtemp, function(x) !all(is.na(x)))]remove(dfPtemp, dfQtemp) NewPrimal <- data.frame(c(dfPZ, dfQ, dfP, dfDV), row.names = NULL, check.rows = F, check.names = F) remove(dfPZ, dfQ, dfP, dfDV) library(mice)# setting up the default settings for the imputationini <- mice(NewPrimal, seed = 52275, imputationMethod = "norm", m...