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

From: ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be>
Date: Sat, 9 Feb 2008 17:24:04 +0100

Gabriella,

First of all I would suggest that you upgrade to a recent R version (2.6.2).

Without a reprodicible example of your code it is very hard to examine the problem. Use traceback() to identify were the problem occurs in your code.

HTH, Thierry




ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
Thierry.Onkelinx_at_inbo.be
www.inbo.be

Do not put your faith in what statistics say until you have carefully considered what they do not say. ~William W. Watt A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney

-----Oorspronkelijk bericht-----
Van: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Namens Delle Donne, Gabriella
Verzonden: vrijdag 8 februari 2008 20:41 Aan: r-help_at_r-project.org
Onderwerp: [R] R ver 2.0.1 NA in Probability Vector Error Messages

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.

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 Sat 09 Feb 2008 - 16:30:04 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 - 16:30:13 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