[R] Printing the function t.test() in R

2010-03-31 Thread Luwis Tapiwa Diya
Dear R Users, I have a question, how does one print an r function like t.test in R (to get the whole function and not just a summary of the environment)? For example if I type the following: > t.test function (x, ...) UseMethod("t.test") > print(t.test) function (x, ...) UseMethod("t.test")

[R] R2WinBUGS and R-2.10.0: The school example not running

2009-11-03 Thread Luwis Tapiwa Diya
Dear R users I have been encountering an error (in the Winbugs window: Blackbox - index out of range . ). So to me it seems R2WinBUGS is not linking up well with the new R version since the same model runs well under r-2.9.2. So is my assumption correct or am I doing something wrong. The data

[R] How to fit a hierarchical model using Umacs

2009-07-01 Thread Luwis Tapiwa Diya
Dear R Users, I have been trying to fit models using Umacs. However I seem to be lost in specifying random effects. Can anyone advise me (if possible with a small hierarchical or mixed models data set) on how one can specify the random effects sampling algorithm or possibly point me to the example

[R] Problems trying to run R2jags on a Linux Cluster

2009-06-22 Thread Luwis Tapiwa Diya
Dear R users, I am having problems in trying to run R2jags on a Linux Cluster. When I tried to run the model given in the R2jags manual I get the following error error message: Error in FUN(X[[3L]], ...) : object 'J' not found Can any one help me with this problem? Looking to hear from you all.

[R] Cross classified or Multiple membership or Hierarchical (3 level ) logistic models using Umacs

2009-02-17 Thread Luwis Tapiwa Diya
Dear R users, I would like to fit cross classified or multiple membership logistic models or a 3 level hierarchical logistic model using the Umacs package. Can anyone advise me on how to proceed or better point me to examples of how its done. Regards, -- Luwis Diya, Leuven Biostatistics and St

[R] Obtaining the first /or last record of a subject in a longitudinal study

2008-08-07 Thread Luwis Tapiwa Diya
Dear R users, I was wondering if anyone knows how to obtain(subset) the first and/or the last record of a subject in a longitudinal setup. Normally in SAS one uses first.variable1 and last.variable1. So my question is that is there an R way of doing this. Regards, -- Luwis Diya, Phd student (B