[R] how can I use R functions in Fortran 90

2009-12-28 Thread Anny Huang
Hi all, Is there a way that I can import R functions into Fortran? Especially, I want to generate random numbers from some not-so-common distributions (e.g. inverted chi square) but did not find any routines written in Fortran that deal with distributions other than uniform and normal. Thanks. An

[R] how to draw a vertical line from points to x-axis

2008-09-07 Thread Anny Huang
Hello, I want to know how to draw a line connecting each point to the x-axis perpendicularly (i.e. a vertical line). abline(v=...) seems not to work for my purpose, because it runs over the data point. Can anyone help? Thanks. Anny [[alternative HTML version deleted]] __

[R] WinBUGS posterior samples (via R2WinBUGS)?

2008-12-30 Thread Anny Huang
Hi all, I did some analysis using package R2WinBUGS to call WinBUGS. I set the iterations to 5 (fairly a large number, I think), but after the program was done, the effective posterior samples contained only 7 draws. I don't know why. By the way, I checked posterior sample size by using bug