similar to: Help with write.csv

Displaying 20 results from an estimated 3000 matches similar to: "Help with write.csv"

2008 Oct 29
1
Help with impute.knn
ear all, This is my first time using this listserv and I am seeking help from the expert. OK, here is my question, I am trying to use impute.knn function in impute library and when I tested the sample code, I got the error as followingt: Here is the sample code: library(impute) data(khanmiss) khan.expr <- khanmiss[-1, -(1:2)] ## ## First example ## if(exists(".Random.seed"))
2008 May 13
1
Compare columns
Dear R-users, I have the following 2 files; A V1 V2 A 1 A 2 A 3 A 4 B 1 B 4 C 1 C 3 D 4 B V1 V2 process1 1 process2 2 process3 3 process4 4 I want to get this output C V1 V2 V3 A 1 process1 A 2 process2 A 3 process3 A 4 process4 B 1 process1 B
2010 Aug 10
1
Multiple imputation, especially in rms/Hmisc packages
Hello, I have a general question about combining imputations as well as a question specific to the rms and Hmisc packages. The situation is multiple regression on a data set where multiple imputation has been used to give M imputed data sets. I know how to get the combined estimate of the covariance matrix of the estimated coefficients (average the M covariance matrices from the individual
2012 Jul 21
2
EM for missing data
Hi list, I am wondering if there is a way to use EM algorithm to handle missing data and get a completed data set in R? I usually do it in SPSS because EM in SPSS kind of "fill in" the estimated value for the missing data, and then the completed dataset can be saved and used for further analysis. But I have not found a way to get the a completed data set like this in R or SAS. With
2008 Nov 26
1
multiple imputation with fit.mult.impute in Hmisc - how to replace NA with imputed value?
I am doing multiple imputation with Hmisc, and can't figure out how to replace the NA values with the imputed values. Here's a general ourline of the process: > set.seed(23) > library("mice") > library("Hmisc") > library("Design") > d <- read.table("DailyDataRaw_01.txt",header=T) > length(d);length(d[,1]) [1] 43 [1] 2666
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
-----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of r-help-request at r-project.org Sent: Monday, February 11, 2008 12:00 PM To: r-help at r-project.org Subject: R-help Digest, Vol 60, Issue 11 Send R-help mailing list submissions to r-help at r-project.org To subscribe or unsubscribe via the World Wide Web, visit
2007 Sep 26
1
using transcan for imputation, categorical variable
Dear all, I am using transcan to impute missing values (single imputation). I have several dichotomous variables in my dataset, but when I try to impute the missings sometimes values are imputed that were originally not in the dataset. So, a variable with 2 values (severe weight loss or no/limited weight loss) for example coded 0 and 1, shows 3 different values after imputation (0, 1 and 2). I
2005 May 04
3
Imputation
  I have timeseries data for some factors, and some missing values are there in those factors, I want impute those missing values without disturbing the distribution of that factor, and maintaining the correlation with other factors. Pl. suggest me some imputation methods. I tried some functions in R like aregImpute, transcan. After the imputation I am unable to retrive the data with imputed
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("", "", "", "",
2011 Mar 02
2
*** caught segfault *** when using impute.knn (impute package)
hi, i am getting an error when calling the impute.knn function (see the screenshot below). what is the problem here and how can it be solved? screenshot: ################## *** caught segfault *** address 0x513c7b84, cause 'memory not mapped' Traceback: 1: .Fortran("knnimp", x, ximp = x, p, n, imiss = imiss, irmiss, as.integer(k), double(p), double(n), integer(p),
2013 Feb 14
2
Plotting survival curves after multiple imputation
I am working with some survival data with missing values. I am using the mice package to do multiple imputation. I have found code in this thread which handles pooling of the MI results: https://stat.ethz.ch/pipermail/r-help/2007-May/132180.html Now I would like to plot a survival curve using the pooled results. Here is a reproducible example: require(survival) require(mice) set.seed(2) dt
2009 Jan 23
0
Package impute exist in quite different version on CRAN and BioC
[CC:ing package maintainer of 'impute' package and crossposting to r-devel and bioc-devel because this affects both audiences] Hi, the 'impute' package is published both on CRAN and Bioconductor; http://cran.r-project.org/web/packages/impute/ http://bioconductor.org/packages/2.3/bioc/html/impute.html The one on CRAN is v1.0-5, and the one on BioC is v1.14.0. The two
2011 Feb 07
1
multiple imputation manually
Hi, I want to impute the missing values in my data set multiple times, and then combine the results (like multiple imputation, but manually) to get a mean of the parameter(s) from the multiple imputations. Does anyone know how to do this? I have the following script: y1 <- rnorm(20,0,3) y2 <- rnorm(20,3,3) y3 <- rnorm(20,3,3) y4 <- rnorm(20,6,3) y <- c(y1,y2,y3,y4) x1 <-
2005 Jul 08
2
missing data imputation
Dear R-help, I am trying to impute missing data for the first time using R. The norm package seems to work for me, but the missing values that it returns seem odd at times -- for example it returns negative values for a variable that should only be positive. Does this matter in data analysis, and/or is there a way to limit the imputed values to be within the minimum and maximum of the actual
2004 Jun 15
1
fit.mult.impute and quantile regression
I have a largish dataset (1025) with around .15 of the data missing at random overall, but more like .25 in the dependent variable. I am interested in modelling the data using quantile regression, but do not know how to do this with multiply imputed data (which is what the dataset seems to need). The original plan was to use qr (or whatever) from the quantreg package as the 'fitter'
2012 Dec 08
1
imputation in mice
Hello! If I understand this listserve correctly, I can email this address to get help when I am struggling with code. If this is inaccurate, please let me know, and I will unsubscribe. I have been struggling with the same error message for a while, and I can't seem to get past it. Here is the issue: I am using a data set that uses -1:-9 to indicate various kinds of missing data. I changed
2011 Mar 31
2
fit.mult.impute() in Hmisc
I tried multiple imputation with aregImpute() and fit.mult.impute() in Hmisc 3.8-3 (June 2010) and R-2.12.1. The warning message below suggests that summary(f) of fit.mult.impute() would only use the last imputed data set. Thus, the whole imputation process is ignored. "Not using a Design fitting function; summary(fit) will use standard errors, t, P from last imputation only. Use
2009 Sep 21
9
Handling missing data
I have to remove missing data both in character and numeric datatype.I tried using NA condition but it is not working ,please help me to solve this. -- View this message in context: http://www.nabble.com/Handling-missing-data-tp25530192p25530192.html Sent from the R help mailing list archive at Nabble.com.
2011 Dec 09
2
Help with the Mice Function
Hi, I am attempting to impute my data for missing values using the mice function. However everytime I run the function it freezes or lags. I have tried running it over night, and it still does not finish. I am working with 17000 observations across 32 variables. here is my code: imputed.data = mice(data, + m = 1, + diagnostics = F) Thank you in advance, Richard [[alternative HTML version
2005 May 26
1
PAN: Need Help for Multiple Imputation Package
Hello all. I am trying to run PAN, multilevel multiple imputation program, in R to impute missing data in a longitudinal dataset. I could successfully run the multiple imputation when I only imputed one variable. However, when I tried to impute a time-varying covariate as well as a response variable, I received an error message, “Error: subscript out of bounds.” Can anyone tell if my commands