[R] R ver 2.0.1 NA in Probability Vector Error Messages

From: Delle Donne, Gabriella <Gabriella.Delle.Donne_at_experian.com>
Date: Fri, 8 Feb 2008 13:40:57 -0600


Hello,

   I am currently operating R version 2.0.1. I am running an analysis that uses previously written fuctions that I load into R 2.0.1 via the file menu (file-->load workspace). There are other colleagues on my team that are operating the same version of R, using the same input datafile, the same workspace, and the same R code to run this analysis. Their analysis runs without any errors, yet mine does does not. The analysis that we are running attempts to create a sample of individuals that meets certain compositional demographic criteria. To achieve this we ask R to run though up to 10,000 iterations before producing a sample that BEST (i.e., with the smallest rate of error) conforms to the proportions of these demographic characteristics that we specify. When I run this analysis, R produces an output file that results from fewer interations with higher error rates than what my colleagues have achieved when running the same exact code on the same exact data. The error message that populates my R output window is as follows: "Error in sample(length(x), size, replace, prob) : NA in probability vector". I do not understand why I receive this error message, whereas my colleages do not. Any guidance/advice would we extremely helpful!

Thank You!
Gabriella Delle Donne

        [[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. Received on Fri 08 Feb 2008 - 19:56:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Feb 2008 - 17:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive