Error in Genetic Matching
The error message is pretty explicit: your problem is taht one of your inputs has NA (missing value) in it and the GenMatch() function is not prepared to handle the. You can find which one by running: any(is.na(Tr)) any(is.na(X.binarynp) any(is.na(BalanceMatrix.binarynp)) and then use View() on the object with NAs to take a look and see where they are coming from. Michael
On Fri, Dec 2, 2011 at 9:16 AM, shyam basnet <shyamabc2002 at yahoo.com> wrote:
Dear R Users, I am a novice learner of R software. I am working with Genetic Matching -?GenMatch(), but I am getting an Error message as follows: Error in GenMatch(Tr = Tr, X = X.binarynp, BalanceMatrix = BalanceMatrix.binarynp, ?: ? GenMatch(): input includes NAs Could you please suggest me correcting the above problem? My GenMatch command is,
gen1 <- GenMatch(Tr = Tr, X = X.binarynp, BalanceMatrix = BalanceMatrix.binarynp, popsize = 1000)
Thanking you, Sincerely Yours, Shyam Kumar Basnet SLU,?Uppsala Sweden ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.