[R] Splom custom superpanels

2007-08-01 Thread Jonathan Williams
. R scolds me for either missing subscripts, improper subscripts when I try to provide them, or missing data in the panel function, no matter how I define one (or don't). Can anyone recommend a solution or show me how to make my superpanel function more palatable to splom? Thanks, Jonathan

[R] Drawing rectangles in multiple panels

2007-07-11 Thread Jonathan Williams
Hi folks, I'm having some trouble understanding the intricacies of panel functions. I wish to create three side-by-side graphs, each with different data-- so far, so good: I rbind() the data, add a column of subscripts as a conditioning variable, load up the lattice package, specify either a

Re: [R] Drawing rectangles in multiple panels

2007-07-11 Thread Jonathan Williams
Deepayan, Thanks for the clarification. The rectangles are completely external to the panel data, and correspond to 90% confidence intervals built from training data, to be overlaid on these graphs of the test data. - Jonathan At 10:04 AM 7/11/2007, you wrote: On 7/11/07, Jonathan Williams

[R] odd behaviour of %%?

2006-11-22 Thread Jonathan Williams
) If %% is not intended for use with fractional divisors, then would it be a good idea to trap attempts to use them? Thanks, in advance, for your help Jonathan Williams __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] testing for error

2006-10-09 Thread Jonathan Williams
in labels(pred1)) votes[rownames(votes) == : argument is of length zero but, predict(result,dat2) runs fine. So, how do I trap or use the 'logical(0)' state of grep('Error', result) to obtain and accumulate my result? Thanks in advance for your help Jonathan Williams

[R] ex-Gaussian survival distribution

2006-02-28 Thread Jonathan Williams
with these questions. I have a feeling they are trivial, but I am a psychiatrist so I need to check that I am not barking up the wrong tree (or simply barking...)! Jonathan Williams PS why does weibull need quotes in the survreg procedure, while exGauss does

[R] extracting coefficients from lmer

2006-01-10 Thread Jonathan Williams
are both larger than those from the glmmPQL model. I am running R 2.2.1 on a Windows XP machine. Thanks, Jonathan Williams __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

[R] how to find indices of particular array elements

2005-10-17 Thread Jonathan Williams
the functions 'row' and 'col' for finding the indices of a matrix. But, I can't figure out how to use them to obtain the indices of the matrix element with maximum value, despite over an hour of trying! Many thanks for your help, Jonathan Williams __ R-help

[R] problem accumulating array within a function over loops

2005-10-05 Thread Jonathan Williams
I must be making a simple but fundamental error. Would someone be so kind as to show me what this is and how to correct it? I have struggled with it for over an hour, without success! I am running R 2.1.1 on a Windows 2000 machine. Thanks, in advance, for your help, Jonathan Williams

[R] Using tcltk to display jpeg images

2005-08-23 Thread Jonathan Williams
to R. Would someone be so kind as to tell me how to do this? Better still, does anyone have an R routine that will do it, since I have no experience of this kind of programming. Thanks, in advance, Jonathan Williams __ R-help@stat.math.ethz.ch mailing

[R] Fatal error: invalid home drive

2004-10-19 Thread Jonathan Williams
, Jonathan Williams __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Is it possible to read jpeg files into R?

2004-05-27 Thread Jonathan Williams
this? Thanks, in advance, for your help, Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] How to collect trees grown by rpart

2004-03-19 Thread Jonathan Williams
=array(NA, 100) for (run in 1:100) resmat[run]=rpart(y~., data=train[run]) So that, later, I can do: for (run in 1:100) pred[run]=predict(resmat[run], newdat) But, resmat[run] does not work, even though it saves the cptables. Thanks, in advance, Jonathan Williams OPTIMA Radcliffe Infirmary

[R] imputation of sub-threshold values

2004-03-15 Thread Jonathan Williams
Is there a good way in R to impute values which exist, but are less than the detection level for an assay? Thanks, Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 __ [EMAIL PROTECTED] mailing list https

[R] making operators act on rows of a data frame

2004-03-11 Thread Jonathan Williams
be impractical in the program I am trying to write (where the columns I wish to sum are numerous and change from time to time). I would be very grateful to know if it is possible to get operators to act on rows of a data frame, and if so, how. I am running R1.8.1 on Windows NT. Jonathan Williams OPTIMA

[R] suppressing non-integer labels for plot x-axis

2004-02-19 Thread Jonathan Williams
this using the xaxs and xaxp parameters of 'plot'. p1=c(1,2,3); p2=c(5,15,25) plot(p1,p2,xlab='Occasion', ylab='Score', xlim=c(1,3), ylim=c(0,30), xaxp=c(1,3,3), xaxs='r') Could someone let me know how to suppress the non-integer labels? Thanks Jonathan Williams OPTIMA Radcliffe Infirmary

[R] odd results from polr vs wilcoxon test

2003-12-30 Thread Jonathan Williams
, there is no error message from polr. Could someone let me know what I am doing wrong? Thanks, in advance, Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356

[R] Binary file reading problem

2003-08-14 Thread Jonathan Williams
4 integer 43-44 2 integer .. I cannot find a way to set a file pointer, so that I can set readBin to read each datum individually. I'd be very grateful for any help with this. Jonathan Williams Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road

[R] Designing and incorporating a digital filter

2003-08-14 Thread Jonathan Williams
to know how to incorporate this into my R code (or, better, I'd like to know how to design bandpass filters directly in R - the help file for the filter() function does not detail how to do this) Thank you Jonathan Williams Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE

[R] Timer in R?

2003-08-11 Thread Jonathan Williams
it for on-line data analysis of data to control EEG experiments. Thanks, Jonathan Williams Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch

[R] (no subject)

2003-02-13 Thread Jonathan Williams
this problem, I'd be grateful. Thanks, Jonathan Williams Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Too many e-mails

2003-01-20 Thread Jonathan Williams
the mailing list? Thanks, Jonathan Williams Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel +1865 (2)24356 __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Survr error

2003-01-17 Thread Jonathan Williams
' argument of Survr. In my program, r1d[,1] is a simple numeric vector, which I have put into the data frame r1d. I would be grateful fi anyone could let me know how to use Survr so that I can run survfitr. Thanks, Jonathan Williams OPTIMA Radcliffe Infirmary Woodstock Road OXFORD OX2 6HE Tel